[Python-Dev] Filename as byte string in python 2.6 or 3.0?

Tristan Seligmann mithrandi-python-dev at mithrandi.za.net
Mon Sep 29 11:21:11 CEST 2008


* Gregory P. Smith <greg at krypto.org> [2008-09-28 13:34:50 -0700]:

> since any given path (not just fs) can have its own encoding it makes
> the most sense to me to let the OS deal with the errors and not try to
> enforce bytes vs string encoding type at the python lib. level.

But the underlying APIs differ; Linux uses bytestrings for filenames,
whereas I believe the native Windows APIs take "wide" (ie. Unicode)
strings.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080929/7d5f719b/attachment.pgp>


More information about the Python-Dev mailing list