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 skrah
Recipients benjamin.peterson, nneonneo, pitrou, pmpp, skrah
Date 2010-01-31.13:17:37
SpamBayes Score 0.00014075679
Marked as misclassified No
Message-id <>
I wonder if this is technically a bug. The stream is not opened for reading and yet you do an fread. I quickly glanced through the
C-Standard and I did not find an _explicit_ paragraph that this is
undefined behavior, but personally I'd expect it to be.

Regarding the last C example. Also here, you do not open using "w+".
Now, even if you used "w+", by the standard you'd have to do an fflush,
fseek, fsetpos or rewind before reading. I don't see a libc bug.
Date User Action Args
2010-01-31 13:17:40skrahsetrecipients: + skrah, pitrou, nneonneo, benjamin.peterson, pmpp
2010-01-31 13:17:39skrahsetmessageid: <>
2010-01-31 13:17:37skrahlinkissue5677 messages
2010-01-31 13:17:37skrahcreate