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 nicksjacobson
Recipients nicksjacobson
Date 2014-10-16.07:57:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413446231.99.0.734842825619.issue22651@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 2.7.8.10 running the following gives one result:

    >>> with open(r"C:\myfile.txt", "a+") as f:
    ...     f.tell()
    ...
    0L

But in Python 3.4.1.0 it gives a different result:

    >>> with open(r"C:\myfile.txt", "a+") as f:
    ...     f.tell()
    ...
    98

According to the man page for fopen, for a+ mode: "The initial file position for reading is at the beginning of the file." Source: http://linux.die.net/man/3/fopen
History
Date User Action Args
2014-10-16 07:57:12nicksjacobsonsetrecipients: + nicksjacobson
2014-10-16 07:57:11nicksjacobsonsetmessageid: <1413446231.99.0.734842825619.issue22651@psf.upfronthosting.co.za>
2014-10-16 07:57:11nicksjacobsonlinkissue22651 messages
2014-10-16 07:57:11nicksjacobsoncreate