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

New submission from Patrick Sabin <patricksabin@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@python components: Documentation, Library (Lib) files: change_pyio_open_buffering_parameter.diff keywords: patch messages: 104301 nosy: docs@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@bugs.python.org> <http://bugs.python.org/issue8546> _______________________________________

Benjamin Peterson <benjamin@python.org> added the comment: Fixed in r80544. ---------- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8546> _______________________________________

Benjamin Peterson <benjamin@python.org> added the comment: Fixed in r80544. ---------- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8546> _______________________________________
participants (2)
-
Benjamin Peterson
-
Patrick Sabin