[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-dev
Subject:    Re: [Python-Dev] Filename as byte string in python 2.6 or 3.0?
From:       "Guido van Rossum" <guido () python ! org>
Date:       2008-09-30 22:23:15
Message-ID: ca471dc20809301523i28474685mab945a1d39000310 () mail ! gmail ! com
[Download RAW message or body]

On Tue, Sep 30, 2008 at 3:18 PM, Nick Coghlan <ncoghlan@gmail.com> wrote:
> That said, I don't think this is something we (or, more to the point,
> Guido) need to make a decision on right now - for 3.0, having
> bytes-level APIs that can see everything, and Unicode APIs that ignore
> badly encoded filenames is worth trying. If it proves inadequate, then
> we can revisit the idea of some kind of implicit escaping mechanism in
> the Unicode APIs for 3.1 when there is more time for a proper PEP.

Right. Given that most syscalls already support both bytes and
(unicode) str, the simplest thing to do is to take this a bit further,
along the lines of Victor's patches, which I'm reviewing in Rietveld
right now:

http://codereview.appspot.com/3055

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic