Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7725
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!news.le-studio75.com!news.univ-fcomte.fr!not-for-mail |
|---|---|
| From | Laurent Claessens <moky.math@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: os.path and Path |
| Date | Thu, 16 Jun 2011 09:03:58 +0200 |
| Organization | A poorly-installed InterNetNews site |
| Lines | 22 |
| Message-ID | <4DF9AADE.6090609@gmail.com> (permalink) |
| References | <mailman.8.1308188800.1164.python-list@python.org> |
| NNTP-Posting-Host | soleil.univ-fcomte.fr |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.univ-fcomte.fr 1308207834 15649 194.57.84.1 (16 Jun 2011 07:03:54 GMT) |
| X-Complaints-To | news@news.univ-fcomte.fr |
| NNTP-Posting-Date | Thu, 16 Jun 2011 07:03:54 +0000 (UTC) |
| Cc | Python <python-list@python.org> |
| To | Ethan Furman <ethan@stoneleaf.us> |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
| In-Reply-To | <mailman.8.1308188800.1164.python-list@python.org> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:7725 |
Show key headers only | View raw
> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
os.path and Path Ethan Furman <ethan@stoneleaf.us> - 2011-06-15 19:00 -0700
Re: os.path and Path Laurent Claessens <moky.math@gmail.com> - 2011-06-16 09:03 +0200
Re: os.path and Path Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-16 07:58 +0000
Re: os.path and Path Ethan Furman <ethan@stoneleaf.us> - 2011-06-16 09:16 -0700
Re: os.path and Path Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-16 16:41 +0000
Re: os.path and Path Ethan Furman <ethan@stoneleaf.us> - 2011-06-16 10:18 -0700
Re: os.path and Path Eric Snow <ericsnowcurrently@gmail.com> - 2011-06-16 11:21 -0600
Re: os.path and Path Christian Heimes <lists@cheimes.de> - 2011-06-16 18:32 +0200
Re: os.path and Path Ethan Furman <ethan@stoneleaf.us> - 2011-06-16 10:07 -0700
Re: os.path and Path Chris Angelico <rosuav@gmail.com> - 2011-06-17 11:00 +1000
Re: os.path and Path Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-16 07:14 +0000
Re: os.path and Path Ethan Furman <ethan@stoneleaf.us> - 2011-06-16 09:05 -0700
Re: os.path and Path Chris Torek <nospam@torek.net> - 2011-06-17 00:48 +0000
Re: os.path and Path Ethan Furman <ethan@stoneleaf.us> - 2011-06-16 18:19 -0700
Re: os.path and Path Ned Deily <nad@acm.org> - 2011-06-16 19:55 -0700
Re: os.path and Path rusi <rustompmody@gmail.com> - 2011-06-16 21:24 -0700
csiph-web