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/2004-July/045965.html below:

[Python-Dev] file() or open()?

[Python-Dev] file() or open()? [Python-Dev] file() or open()?Paul Prescod paul at prescod.net
Thu Jul 8 06:16:33 CEST 2004
Guido van Rossum wrote:

>...
> 
> Maybe you'll change your mind when open() can return other objects
> besides files.  In the mean time, let's use the compatibility
> argument.  Changing things just because a new century has started
> sounds like a fad to me -- IOW the argument "it's the modern thing to
> do" usually doesn't convince me.

I don't understand why they are both builtins. Why provide two bindings 
for the same thing? I always presumed (as others did) that there was a 
new way and an old way maintained for backwards compatibility.

  Paul Prescod


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