Any other Python flaws?

Samuel Schulenburg samschul at pacbell.net
Fri Jun 15 15:23:39 EDT 2001


I see a problem that only occurs in the IDLE, or Winpython environment.
the following interactive command session will cause either environment to shut down.

>>> a=open("Somefile.txt","r")
>>> a.read()
the "a.read() command under python.exe will output the file stream to the console.
The following will work under IDLE, or WinPython:
>>> a= open("somefile.txt","r")
>>> s = a.read()
>>> print s
but 
>>> a= open("somefile.txt","r")
>>> s=a.read()
>>> s
will also cause the environment to shut down.

Sam Schulenburg



More information about the Python-list mailing list