[New-bugs-announce] [issue18077] dis.dis throws IndexError
Elazar Gershuni
report at bugs.python.org
Tue May 28 04:08:54 CEST 2013
New submission from Elazar Gershuni:
>>> dis.dis('pass')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dis.py", line 45, in dis
disassemble_string(x)
File "/usr/lib/python2.7/dis.py", line 112, in disassemble_string
labels = findlabels(code)
File "/usr/lib/python2.7/dis.py", line 166, in findlabels
oparg = ord(code[i]) + ord(code[i+1])*256
IndexError: string index out of range
it happens for any string.
----------
components: Library (Lib)
messages: 190169
nosy: elazar
priority: normal
severity: normal
status: open
title: dis.dis throws IndexError
type: compile error
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18077>
_______________________________________
More information about the New-bugs-announce
mailing list