A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-December/059095.html below:

[Python-Dev] file() vs open(), round 7

[Python-Dev] file() vs open(), round 7 [Python-Dev] file() vs open(), round 7Fredrik Lundh fredrik at pythonware.com
Tue Dec 27 13:18:27 CET 2005
Aahz wrote:

> class file(object)
> |  file(name[, mode[, buffering]]) -> file object
> |
> |  Open a file.  The mode can be 'r', 'w' or 'a' for reading (default),
> [...]
> |  Note:  open() is an alias for file().
>
> This is confusing.  I suggest that we make ``open()`` a factory function
> right now.  (I'll submit a bug report (and possibly a patch) after I get
> agreement.)

+1.

can we add a opentext factory for file/codecs.open while we're at it ?

</F> 



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4