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 amaury.forgeotdarc
Recipients Otacon.Karurosu, amaury.forgeotdarc, terry.reedy
Date 2011-08-28.22:02:21
SpamBayes Score 6.620933e-07
Marked as misclassified No
Message-id <1314568941.99.0.720132551991.issue12843@psf.upfronthosting.co.za>
In-reply-to
Content
You should call the .flush() method when switching from writes to reads.

Nothing really overflows, but the fread() function may return uninitialized memory.  In versions 2.x, python uses the fopen, fread and fwrite function (from the C library) and is subject to their limitations.

The exact behaviour is undefined, and it is well possible that it only happens on Windows.  See also the discussion in #7952.

This issue does not exist in versions 3.x, where file functions have been rewritten.
History
Date User Action Args
2011-08-28 22:02:22amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, terry.reedy, Otacon.Karurosu
2011-08-28 22:02:21amaury.forgeotdarcsetmessageid: <1314568941.99.0.720132551991.issue12843@psf.upfronthosting.co.za>
2011-08-28 22:02:21amaury.forgeotdarclinkissue12843 messages
2011-08-28 22:02:21amaury.forgeotdarccreate