os.path and Path

Laurent Claessens moky.math at gmail.com
Thu Jun 16 03:03:58 EDT 2011


> So, I suppose I shall have to let go of my dreams of
>
> -->  Path('/some/path/and/file') == '\\some\\path\\and\\file'
>
> and settle for
>
> -->  Path('...') == Path('...')
>
> but I don't have to like it.  :(


Why not define the hash method to first convert to '/some/path/and/file' 
and then hash ?

By the way it remains some problems with

/some/another/../path/and/file

which should also be the same.

Laurent



More information about the Python-list mailing list