> 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