[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jun 3 16:23:30 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #22 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #20)
> OK I rolled them back so that I could continue developing, and renamed types
> into core.

dmitry!  please don't make that kind of decision without an acknowledgement!

i now cannot do any work!

i am trying to track down the RA_OR_ZERO bug and have found it's
not RA_OR_ZERO at all, but now have to terminate working on this.

i know "dis" is short - i like it as well, because it matches with "asm"
which is also 3 letters.

but if there's a serious problem on global namespace clashes those names
have to be considered "off-limits"

generally, function/object names and keywords such as "type" are also
off-limits.


lkcl at fizzy:~/src/libresoc/openpower-isa/src/openpower$ python3 insndb/db.py
Traceback (most recent call last):
  File "insndb/db.py", line 8, in <module>
    from openpower.insndb.core import (
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/insndb/core.py",
line 4, in <module>
    import dataclasses as _dataclasses
  File "/usr/lib/python3.7/dataclasses.py", line 5, in <module>
    import inspect
  File "/usr/lib/python3.7/inspect.py", line 35, in <module>
    import dis
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/insndb/dis.py",
line 9, in <module>
    from openpower.insndb.core import (
ImportError: cannot import name 'Style' from 'openpower.insndb.core'
(/home/lkcl/src/libresoc/openpower-isa/src/openpower/insndb/core.py)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list