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/2002-June/025484.html below:

[Python-Dev] large file support

[Python-Dev] large file supportGuido van Rossum guido@python.org
Mon, 17 Jun 2002 16:08:26 -0400
> However, I'm still unhappy with one thing related to large file
> support.  If you've got a Python that doesn't have large file support
> and you try os.path.exists() on a large file, it will return false.
> This is really bad!  Imagine you've got code that says, if the file
> doesn't exist open with mode "w+b" :-(.

Wow, that sucks.

> I'd be happiest if os.path.exists() would work regardless of whether
> Python supported large files.  I'd be satisifed with an exception that
> at least let me know something went wrong.

Is there an errno we can test for?  stat() for a non-existent file
raises one exception, stat() for a file in a directory you can't read
raises a different one; maybe stat of a large file raises something
else again?  I think os.path.exists() ought to return True in this case.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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