Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue3810] os.chdir() et al: is the path str or bytes?

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 1, 2009, 4:06 AM

Post #1 of 3 (77 views)
Permalink
[issue3810] os.chdir() et al: is the path str or bytes?

Changes by Ezio Melotti <ezio.melotti[at]gmail.com>:


----------
assignee: georg.brandl -> ezio.melotti
nosy: +ezio.melotti
priority: -> low

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 3, 2009, 5:58 PM

Post #2 of 3 (64 views)
Permalink
[issue3810] os.chdir() et al: is the path str or bytes? [In reply to]

Ezio Melotti <ezio.melotti[at]gmail.com> added the comment:

At the beginning of the page[1] there's a note that says: "All functions
accepting path or file names accept both bytes and string objects, and
result in an object of the same type, if a path or file name is returned."
This applies to os.chdir() too (both work, however it doesn't return
anything).

The doc for os.listdir[2] now says: "This function can be called with a
bytes or string argument. In the bytes case, all filenames will be
listed as returned by the underlying API. In the string case, filenames
will be decoded using the file system encoding, and skipped if a
decoding error occurs." so the second problem you mentioned seems
already fixed.

[1]: http://docs.python.org/3.0/library/os.html#module-os
[2]: http://docs.python.org/3.0/library/os.html#os.listdir

----------
status: open -> pending

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 8:51 AM

Post #3 of 3 (57 views)
Permalink
[issue3810] os.chdir() et al: is the path str or bytes? [In reply to]

Changes by R. David Murray <rdmurray[at]bitdance.com>:


----------
resolution: -> out of date
stage: -> committed/rejected
status: pending -> closed

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue3810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.