Message155304
| Author |
mark.dickinson |
| Recipients |
Jim.Jewett, benjamin.peterson, mark.dickinson, meador.inge, menegazzobr, terry.reedy |
| Date |
2012年03月10日.11:52:10 |
| SpamBayes Score |
1.249223e-12 |
| Marked as misclassified |
No |
| Message-id |
<1331380333.43.0.688321656077.issue14169@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here's the trackback I get with Python 2.7. Look's like something's assuming that POP_JUMP_IF_FALSE target of 65541 fits in 16 bits.
Python 2.7.2 (default, Jan 13 2012, 17:11:09)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> with open('small_with_error.py') as f:
... contents = f.read()
...
>>> import compiler
>>> compiler.compile(contents, '<string>', 'exec')
POP_JUMP_IF_FALSE 65541
114 5 256
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compiler/pycodegen.py", line 65, in compile
gen.compile()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compiler/pycodegen.py", line 117, in compile
self.code = gen.getCode()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compiler/pycodegen.py", line 248, in getCode
return self.graph.getCode()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compiler/pyassem.py", line 313, in getCode
self.makeByteCode()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compiler/pyassem.py", line 518, in makeByteCode
lnotab.addCode(self.opnum[opname], lo, hi)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compiler/pyassem.py", line 612, in addCode
self.code.append(chr(arg))
ValueError: chr() arg not in range(256) |
|