Terry J. Reedy <tjre...@udel.edu> added the comment:

The doc 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." It does that now (the encoding assumed or produced for bytes 
is not specified). It says nothing about raising exceptions in certain 
situations. So this is a feature change request, one that would likely break 
existing code.

Users can test for invalid returned paths with "'?' in returned_path", though I 
admit that the use of '?' as a glob, regex, and url special char makes it a bad 
choice of error char.

----------
nosy: +terry.reedy
type: behavior -> feature request
versions:  -Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13247>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to