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.

Author vstinner
Recipients docs@python, pitrou, vstinner
Date 2010-07-06.21:58:07
SpamBayes Score 9.6029515e-05
Marked as misclassified No
Message-id <1278453489.46.0.972678242141.issue9184@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-07-06 21:58:09vstinnersetrecipients: + vstinner, pitrou, docs@python
2010-07-06 21:58:09vstinnersetmessageid: <1278453489.46.0.972678242141.issue9184@psf.upfronthosting.co.za>
2010-07-06 21:58:07vstinnerlinkissue9184 messages
2010-07-06 21:58:07vstinnercreate