Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-30228: FileIO seek() and tell() set seekable #1384

Merged
merged 1 commit into from
May 2, 2017
Merged

bpo-30228: FileIO seek() and tell() set seekable #1384

merged 1 commit into from
May 2, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 2, 2017

FileIO.seek() and FileIO.tell() method now set the internal seekable
attribute to avoid one syscall open() (in buffered or text mode).

The seekable property is now also more reliable since its value is
set correctly on memory allocation failure.

@mention-bot
Copy link

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @zooba, @hynek and @serhiy-storchaka to be potential reviewers.

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label May 2, 2017
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka
Copy link
Member

But please add a Misc/NEWS entry.

FileIO.seek() and FileIO.tell() method now set the internal seekable
attribute to avoid one syscall on open() (in buffered or text mode).

The seekable property is now also more reliable since its value is
set correctly on memory allocation failure.
@vstinner
Copy link
Member Author

vstinner commented May 2, 2017 via email

@vstinner vstinner merged commit 9997073 into python:master May 2, 2017
@vstinner vstinner deleted the fileio_seekable branch May 2, 2017 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants