[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: > In real life applications, you do run into these problems quite > often Yes, I'm agree 100% with you :-) > > Python3 prefers unicode, eg. print expects an unicode string, not a byte > > string. I mean it's more pratical to use unicode everywhere in Python, >

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> Please follow the naming convention used in os.path. The functions >> would have to be called os.path.fsencode() and os.path.fsdecode(). > > Ok > >> Other than that, I'm +0 on the patch: t

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-25 Thread STINNER Victor
STINNER Victor added the comment: > Please follow the naming convention used in os.path. The functions > would have to be called os.path.fsencode() and os.path.fsdecode(). Ok > Other than that, I'm +0 on the patch: the sys.filesystemencoding > logic doesn't really work well in practice - on Un

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> patch review type: -> feature request ___ Python tracker ___

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > Python3 uses unicode filenames in Windows and bytes filenames (but support > also unicode filenames) on other OS. We have to support both types. On POSIX > system, bytes filenames can be

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-23 Thread STINNER Victor
STINNER Victor added the comment: Issue #8513 would benefit from these functions. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +lemburg, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-23 Thread STINNER Victor
New submission from STINNER Victor : Python3 uses unicode filenames in Windows and bytes filenames (but support also unicode filenames) on other OS. We have to support both types. On POSIX system, bytes filenames can be stored in unicode filenames using sys.getfilesystemencoding() and the surr