flox <[email protected]> added the comment:
(patch attached: explicit signature)
I vote +1 for something more explicit.
« Explicit is better than implicit. »
>>> help(open)
Help on built-in function open in module io:
open(...)
open(file_name_or_path) -> file object for reading in text mode
open(file_name_or_path, mode=binary_mode[, buffering]) -> file objec
open(file_name_or_path[, mode=text_mode[, buffering[, encoding
[, errors[, newline]]]]]) -> file object
open(file_descriptor[, ...[, closefd]]) -> file object
Open file and return a stream. Raise IOError upon failure.
file_name_or_path is either a text or byte string giving the name
(and the path if the file isn't in the current working directory)
of the file to be opened.
file_descriptor is an integer file descriptor of the file to be
wrapped. The file descriptor is closed when the returned I/O object
is closed, unless closefd is set to False.)
mode is an optional string that specifies the mode in which the file
is opened...
----------
Added file: http://bugs.python.org/file15441/issue7417_py3k_explicit.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7417>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com