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 martin.panter
Recipients berker.peksag, ezio.melotti, introom, martin.panter
Date 2015-09-20.05:41:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442727682.33.0.364259547966.issue25057@psf.upfronthosting.co.za>
In-reply-to
Content
For an illustration of the problem that this would cause, I did a quick search through Python’s own source tree. It already has various keyword names:

def seek(self, pos, whence=0):
def seek(self, cookie, whence=0):
def seek(self, offset, whence=0):
def seek(self, position, whence=io.SEEK_SET):

It is easy to imagine third party implementations also exist with a variety of keyword names. So I definitely think we should avoid changing the IOBase API because it will break backwards compatibility. And I think there is no good reason to add explicit keyword support to individual concrete classes like TextIOWrapper, in case it gives users the wrong impression about the general IOBase API.
History
Date User Action Args
2015-09-20 05:41:22martin.pantersetrecipients: + martin.panter, ezio.melotti, berker.peksag, introom
2015-09-20 05:41:22martin.pantersetmessageid: <1442727682.33.0.364259547966.issue25057@psf.upfronthosting.co.za>
2015-09-20 05:41:22martin.panterlinkissue25057 messages
2015-09-20 05:41:21martin.pantercreate