New issue 2570: Index error in dis module
https://bitbucket.org/pypy/pypy/issues/2570/index-error-in-dis-module

Andrew Stromnov:

```
#!python

Python 2.7.13 (1aa2d8e03cdfab54b7121e93fda7e98ea88a30bf, Apr 07 2017, 21:23:56)
[PyPy 5.7.1 with GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on 
darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>> import dis
>>>> dis.dis("{'key': 'value'}")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/lib/pypy/lib-python/2.7/dis.py", line 45, in dis
    disassemble_string(x)
  File "/opt/local/lib/pypy/lib-python/2.7/dis.py", line 112, in 
disassemble_string
    labels = findlabels(code)
  File "/opt/local/lib/pypy/lib-python/2.7/dis.py", line 166, in findlabels
    oparg = ord(code[i]) + ord(code[i+1])*256
IndexError: string index out of range
```


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to