[docs] [issue8546] The parameter buffering in _pyio.open doesn't work the same as in the builtin open

Patrick Sabin report at bugs.python.org
Tue Apr 27 10:26:50 CEST 2010


New submission from Patrick Sabin <patricksabin at gmx.at>:

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.

----------
assignee: docs at python
components: Documentation, Library (Lib)
files: change_pyio_open_buffering_parameter.diff
keywords: patch
messages: 104301
nosy: docs at python, pyfex
priority: normal
severity: normal
status: open
title: The parameter buffering in _pyio.open doesn't work the same as in the builtin open
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file17103/change_pyio_open_buffering_parameter.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8546>
_______________________________________


More information about the docs mailing list