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-January/019122.html below:

[Python-Dev] Unicode strings as filenames

[Python-Dev] Unicode strings as filenames [Python-Dev] Unicode strings as filenamesMartin v. Loewis martin@v.loewis.de
Fri, 4 Jan 2002 02:07:04 +0100
>    The system provided scripting languages support wide character file
> names. 

Please understand that Python also supports wide character file
names. It just doesn't allow all the possible values that the system
would allow.

> For Each f1 in fso.GetFolder("C:\").Files

That, of course, is another important difference: Here you get the
directory contents as wide strings. Changing os.listdir to return
Unicode objects would be possible, but would likely introduce a number
of incompatibilities. Your script (e.g. the Python variant) is
prepared that .Files returns Unicode objects. Making the same change
in Python on all functions that return file names (i.e. listdir, glob,
etc) is difficult - most likely, you'll have to make the return type
a choice of the application.

Regards,
Martin



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