Re: PEP on path module for standard library
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: PEP on path module for standard library

From: Peter Hansen <peter@engcorp.com>
Date: Fri Jul 22 2005 - 20:24:33 CEST

Duncan Booth wrote:
> BTW, does it matter at all in practical use that the base class of path
> varies between str and unicode depending on the platform?

I haven't seen any problem. I confess I can't even imagine exactly what
the problem might be, since they're both subclasses of basestring,
aren't they?

And current code should have exactly the same issues when using str or
unicode in all the calls that path() merely wraps.

So does it matter in practical use when one faces this issue and is
*not* using "path"?

-Peter
Received on Thu Sep 29 17:06:34 2005