Message5101
I am unable to use the dis.dis function. The following behavior is
consistent between classes, functions, and instance methods:
>>> import dis
>>> def addem(x,y):
... return (x + y)
...
>>> dis.dis(addem)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\jython2.5.1rc1\Lib\dis.py", line 42, in dis
disassemble(x)
File "C:\jython2.5.1rc1\Lib\dis.py", line 64, in disassemble
linestarts = dict(findlinestarts(co))
File "C:\jython2.5.1rc1\Lib\dis.py", line 183, in findlinestarts
byte_increments = [ord(c) for c in code.co_lnotab[0::2]]
AttributeError: 'tablecode' object has no attribute 'co_lnotab' |
|
Date |
User |
Action |
Args |
2009-09-04 13:44:29 | goon12 | set | recipients:
+ goon12 |
2009-09-04 13:44:28 | goon12 | set | messageid: <1252071868.94.0.416404174759.issue1459@psf.upfronthosting.co.za> |
2009-09-04 13:44:28 | goon12 | link | issue1459 messages |
2009-09-04 13:44:28 | goon12 | create | |
|