Message5101

Author goon12
Recipients goon12
Date 2009-09-04.13:44:28
SpamBayes Score 0.00095574534
Marked as misclassified No
Message-id <1252071868.94.0.416404174759.issue1459@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2009-09-04 13:44:29goon12setrecipients: + goon12
2009-09-04 13:44:28goon12setmessageid: <1252071868.94.0.416404174759.issue1459@psf.upfronthosting.co.za>
2009-09-04 13:44:28goon12linkissue1459 messages
2009-09-04 13:44:28goon12create