Bug in Python

Kiuhnm kiuhnm03.4t.yahoo.it
Wed Apr 18 07:12:38 EDT 2012


On 4/18/2012 6:47, Hans Mulder wrote:
> 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.

Yep, Python 2.7.3 crashes as well.
And now I won't be able to release my module until this bug is fixed or 
I find some workaround :(
I'll send a bug report to bugs.python.org.

Kiuhnm



More information about the Python-list mailing list