Re-assigning 'stdin' Problem...

Adrian Eyre a.eyre at optichrome.com
Tue Jan 25 06:44:54 EST 2000


> class MyConsole:
>     def readline( self ):
>         if ( self.BufferHasData )
>             return self.GetBufferData()
>         else
> ->        return ""

Have a look in the IDLE source:

python/Tools/idle/PyShell.py line 266 (ish)

--------------------------------------------
Adrian Eyre <a.eyre at optichrome.com>
http://www.optichrome.com 





More information about the Python-list mailing list