This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nneonneo
Recipients nneonneo
Date 2009-04-03.01:24:41
SpamBayes Score 6.9572126e-12
Marked as misclassified No
Message-id <>
(tested and verified on Windows and Solaris SPARC)

Running this code in Python 2.4, 2.5 or 2.6 (all minor versions)
produces garbage.


Mac OS X and Linux appear to simply throw an "IOError: [Errno 9] Bad
file descriptor" exception, while using a read method without writing
first produces the same exception on Windows and certain versions under

Under Solaris, it is further possible to segfault the interpreter with
this code:

In the former case, it appears as if the data is simply read from the
disk block containing the file. In the latter, I have no clue what is
going on.

In Python 3.0, file objects opened with "w" don't even support any .read
methods, so this does not affect Py3k.
Date User Action Args
2009-04-03 01:24:44nneonneosetrecipients: + nneonneo
2009-04-03 01:24:44nneonneosetmessageid: <>
2009-04-03 01:24:42nneonneolinkissue5677 messages
2009-04-03 01:24:41nneonneocreate