path module

John J. Lee jjl at pobox.com
Sat Jul 26 19:34:07 EDT 2003


holger krekel <pyth at devel.trillke.net> writes:

> Jason Orendorff wrote:
[...about passing path objects to library methods that expect a string...]
> > This is a type rule.  Such a thing has no place in Python.
> 
> Oh, the stdlib has lots of places where it expects certain types in
> certain places.  Look for e.g. 'isinstance'. 

It's not even a strict type rule.  It's just that a path object
wouldn't implement the string interface.  I don't know why that would
have 'no place in Python', or be 'counterlogical'.


John




More information about the Python-list mailing list