Message28931
Logged In: YES
user_id=34209
Unfortunately, it isn't quite fixed. It's fixed for code in
the global scope, but not for functions:
>>> s255 = "def foo():\n " + "".join(["\n "] * 254 + ["
spam\n"])
>>> exec s255
>>> dis.dis(foo)
.256 0 LOAD_GLOBAL 0 (spam)
. 3 POP_TOP
. 4 LOAD_CONST 0 (None)
. 7 RETURN_VALUE
>>> s256 = "def foo():\n " + "".join(["\n "] * 255 + ["
spam\n"])
>>> exec s256
>>> dis.dis(foo)
. 1 0 LOAD_GLOBAL 0 (spam)
. 3 POP_TOP
. 4 LOAD_CONST 0 (None)
. 7 RETURN_VALUE
I haven't tried figuring out for what else it's broken like
this, sorry :)
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:40:51 | admin | link | issue1512814 messages |
| 2007-08-23 14:40:51 | admin | create | |
|