A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-March/052020.html below:

[Python-Dev] os.access and Unicode

[Python-Dev] os.access and Unicode [Python-Dev] os.access and UnicodeSkip Montanaro skip at pobox.com
Tue Mar 8 20:29:48 CET 2005
    Brett> If there was no other way to get os.access-like functionality, I
    Brett> would say it should be backported.  But since there are other
    Brett> ways to figure out everything that os.access can tell you I say
    Brett> don't backport...

I don't think you can tell (certainly not easily) what the real user's
permissions are on a file without a lot of work.  access is almost never the
right tool for the job (most of the time euid == ruid), but when it is the
right tool it's a lot better than the alternative.

I say backport.  If people were trying to call os.access with unicode
filenames it would have been failing and they were either avoiding unicode
filenames as a result or working around it some other way.  I can't see how
making os.access work with unicode filenames is going to break existing
code.

Skip
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