[Stackless] reproducible SystemError in the interactive mode (win32)
tismer at tismer.com
Wed Feb 21 17:58:55 CET 2001
Changjune Kim wrote:
> Well, my email account sent it in HTML mode and the code broke up, so I'm
> sending this one from another account -- truly sorry.
> for (char,num) in (('a',1),('b',2),('c',0),('d',4)):
> if 1<num:
> When run on the interactive interpreter, this code puts out:
> Traceback (most recent call last):
> File "<stdin>", line 3, in ?
> SystemError: error return without exception set
> ,whereas it runs without the error on the standard python.
> However, strangely enough, it runs well even on SPC when it's run as a file.
> Can you guys reproduce it on your system?
Yes, sadly. Even worse, this is the minimum version that breaks:
>>> for num in range(3):
... if 1:
When you uncomment the assignment line, the code works.
And it always works in functions.
Will have a look into this.
Thanks & cheers - chris
Christian Tismer :^) <mailto:tismer at tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Kaunstr. 26 : *Starship* http://starship.python.net
14163 Berlin : PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
where do you want to jump today? http://www.stackless.com
Stackless mailing list
Stackless at starship.python.net
More information about the Stackless