We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = None created_at = <Date 2017-05-29.08:59:06.599> labels = ['type-feature', '3.7', 'expert-IO'] title = 'Allow inspecting buffering attribute of IO objects' updated_at = <Date 2017-05-31.16:13:25.672> user = 'https://github.com/pitrou'
bugs.python.org fields:
activity = <Date 2017-05-31.16:13:25.672> actor = 'pitrou' assignee = 'none' closed = False closed_date = None closer = None components = ['IO'] creation = <Date 2017-05-29.08:59:06.599> creator = 'pitrou' dependencies = [] files = [] hgrepos = [] issue_num = 30504 keywords = [] message_count = 3.0 messages = ['294683', '294685', '294849'] nosy_count = 4.0 nosy_names = ['pitrou', 'benjamin.peterson', 'stutzbach', 'serhiy.storchaka'] pr_nums = [] priority = 'normal' resolution = None stage = 'needs patch' status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue30504' versions = ['Python 3.7']
The text was updated successfully, but these errors were encountered:
It would be useful to be able to inspect the buffering attribute of buffered and text I/O objects, especially for debugging.
I would expect e.g.:
>>> sys.stdout.buffering 1 # line-buffered >>> sys.stdout.buffer.buffering 8192
Sorry, something went wrong.
>>> sys.stdout.line_buffering True
For buffered streams I would expect the attribute named "buffer_size", conforming to the name of the parameter of the constructor.
Ah, I had forgotten about the line_buffering attribute. Thank you.
line_buffering
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: