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.

classification
Title: The parameter buffering in _pyio.open doesn't work the same as in the builtin open
Type: behavior Stage:
Components: Documentation, Library (Lib) Versions: Python 3.1, Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: benjamin.peterson, docs@python, pyfex
Priority: normal Keywords: patch

Created on 2010-04-27 08:26 by pyfex, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
change_pyio_open_buffering_parameter.diff pyfex, 2010-04-27 08:26 Change the signature of open in the pyio module to resemble the builtin Implementation
Messages (2)
msg104301 - (view) Author: Patrick Sabin (pyfex) Date: 2010-04-27 08:26
As far as I understand the _pyio.open function should resemble the builtin open, but in case of the buffering parameter, it doesn't. The builtin version doesn't allow None as argument, but this is the default in the _pyio.open signature.

I attached a patch, which changes the default value of the buffering parameter to -1, which is the default in the builtin version.
msg104361 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-04-27 21:02
Fixed in r80544.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52792
2010-04-27 21:02:25benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg104361

resolution: fixed
2010-04-27 08:26:46pyfexcreate