[Python-Dev] File system path PEP, part 2 (original) (raw)
Guido van Rossum guido at python.org
Fri May 13 13:38:35 EDT 2016
- Previous message (by thread): [Python-Dev] File system path PEP, part 2
- Next message (by thread): [Python-Dev] File system path PEP, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, May 13, 2016 at 9:33 AM, Larry Hastings <larry at hastings.org> wrote:
On 05/13/2016 06:21 PM, Guido van Rossum wrote: Really, if you want bytes, you should use os.fsencode(); if you want strings, use os.fsencode(); if you want to be polymorphic, use os.fspath() and check the type it returns. Am I severely misunderstanding the API, or did you mean "if you want strings, use os.fsdecode()" here?
encode, decode -- poh-tay-toe, poh-tah-toe. :-)
Another slip of the fingers, I did mean os.fsdecode() when you want strings.
encode, schmencode...
-- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160513/3bb15205/attachment.html>
- Previous message (by thread): [Python-Dev] File system path PEP, part 2
- Next message (by thread): [Python-Dev] File system path PEP, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]