Bug in Python
Hans Mulder
hansmu at xs4all.nl
Wed Apr 18 00:47:44 EDT 2012
On 18/04/12 03:08:08, Kiuhnm wrote:
> print(1)
> print(2)
> print(3)
>
> with open('test') as f:
> data = f.read()
> with open('test') as f:
> data = f.read()
I get the same result with Pythin 3.3.0a0 on MacOS X 10.6:
93> ./python.exe -m pdb /tmp/script.py
> /tmp/script.py(1)<module>()
-> print(1)
(Pdb) j 7
Assertion failed: (blockstack_top > 0), function frame_setlineno, file
Objects/frameobject.c, line 208.
Abort trap
The assertion that fails is in this code fragment:
case POP_BLOCK:
assert(blockstack_top > 0);
This looks like a genuine bug in the CPythin interpreter to me.
-- HansM
More information about the Python-list
mailing list