[Stackless] Another 'print >>' bug
Christian Tismer
tismer at tismer.com
Mon Apr 16 19:03:19 CEST 2001
Hi Bernd,
Bernd Rinn wrote:
>
> Hi,
>
> I think I have found another 'print >>' bug in Stackless Python:
>
> --- ttt.py -------------------------------------------------------
> import sys
> print >>sys.stderr, "Hello World"
> print "Hello World"
> ------------------------------------------------------------------
>
> gives :
>
> ------------------------------------------------------------------
> ~/tmp $ python ttt.py
> Hello World
> Traceback (most recent call last):
> File "ttt.py", line 6, in ?
> print "Hello World"
> TypeError: writeobject with NULL file
> ------------------------------------------------------------------
I tracked this one down. It was a bad condition where I failed
to clear the "stream" variable. Not sure if I should put
the fix on the web, since I'm working on 2.1?
> PS: Is there yet anything known about the reference counting bug?
Not yet, but I'm looking into it.
ciao - 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
http://starship.python.net/mailman/listinfo/stackless
More information about the Stackless
mailing list