New submission from STINNER Victor <victor.stin...@haypocalc.com>: Examples: * open(filename) works * open(filename, buffering=-1) works * open(filename, buffering=None) fails
In the code: * _pyio.open(): default value is -1, type is int, no default value in the docstring * _io.open(): default value is not specified (C function), type is int, default value in the docstring is None In the doc: * open() default value is None The default value should be -1 everywhere. None is rejected by io.open (_io) and _pyio.open. Attached patch fixes _io.open() docstring Python documentation. ---------- assignee: d...@python components: Documentation, IO, Interpreter Core files: open_doc_buffering.patch keywords: patch messages: 109434 nosy: d...@python, haypo, pitrou priority: normal severity: normal status: open title: open() doc: default value for buffering is -1, not None versions: Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file17886/open_doc_buffering.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9184> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com