Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Dirkjan Ochtman
On Thu, Apr 11, 2013 at 11:27 PM, Antoine Pitrou wrote: > Hmm, I think I'm tending towards the latter right now. You might also want to look at what Mercurial does. As a cross-platform filesystem-oriented tool, it has some interesting issues in the department of casefolding. Cheers, Dirkjan ___

Re: [Python-Dev] Destructors and Closing of File Objects

2013-04-11 Thread Brian Curtin
On Fri, Apr 12, 2013 at 12:04 AM, Nikolaus Rath wrote: > [ Note: I already asked this on > http://stackoverflow.com/questions/15917502 but didn't get any > satisfactory answers] Sorry, but that's not a reason to repost your question to this list. If you have to ask somewhere else, it would be pyt

[Python-Dev] Destructors and Closing of File Objects

2013-04-11 Thread Nikolaus Rath
[ Note: I already asked this on http://stackoverflow.com/questions/15917502 but didn't get any satisfactory answers] Hello, The description of tempfile.NamedTemporaryFile() says: , | If delete is true (the default), the file is deleted as soon as it is | closed. ` In some circumstance

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Cameron Simpson
On 11Apr2013 16:23, Guido van Rossum wrote: | On Thu, Apr 11, 2013 at 4:09 PM, Cameron Simpson wrote: | > On 11Apr2013 14:11, Guido van Rossum wrote: | > | Some of my Dropbox colleagues just drew my attention to the occurrence | > | of case folding in pathlib.py. Basically, case folding as an ap

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Guido van Rossum
On Thu, Apr 11, 2013 at 4:09 PM, Cameron Simpson wrote: > On 11Apr2013 14:11, Guido van Rossum wrote: > | Some of my Dropbox colleagues just drew my attention to the occurrence > | of case folding in pathlib.py. Basically, case folding as an approach > | to comparing pathnames is fatally flawed.

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Cameron Simpson
On 11Apr2013 14:11, Guido van Rossum wrote: | Some of my Dropbox colleagues just drew my attention to the occurrence | of case folding in pathlib.py. Basically, case folding as an approach | to comparing pathnames is fatally flawed. The issues include: | | - most OSes these days allow the mountin

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Guido van Rossum
On Thu, Apr 11, 2013 at 2:27 PM, Antoine Pitrou wrote: > On Thu, 11 Apr 2013 14:11:21 -0700 > Guido van Rossum wrote: >> Hey Antoine, >> >> Some of my Dropbox colleagues just drew my attention to the occurrence >> of case folding in pathlib.py. Basically, case folding as an approach >> to compari

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Oleg Broytman
On Fri, Apr 12, 2013 at 09:29:44AM +1200, Robert Collins wrote: > On 12 April 2013 09:18, Oleg Broytman wrote: > > On Thu, Apr 11, 2013 at 02:11:21PM -0700, Guido van Rossum > > wrote: > >> - the case-folding algorithm on some filesystems is burned into the > >> disk when the disk is formatted

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Robert Collins
On 12 April 2013 09:18, Oleg Broytman wrote: > On Thu, Apr 11, 2013 at 02:11:21PM -0700, Guido van Rossum > wrote: >> - the case-folding algorithm on some filesystems is burned into the >> disk when the disk is formatted > >Into the partition, I guess, not the physical disc? CDROMs - Joliet

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Antoine Pitrou
On Thu, 11 Apr 2013 14:11:21 -0700 Guido van Rossum wrote: > Hey Antoine, > > Some of my Dropbox colleagues just drew my attention to the occurrence > of case folding in pathlib.py. Basically, case folding as an approach > to comparing pathnames is fatally flawed. The issues include: > > - most

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Oleg Broytman
On Thu, Apr 11, 2013 at 02:11:21PM -0700, Guido van Rossum wrote: > - the case-folding algorithm on some filesystems is burned into the > disk when the disk is formatted Into the partition, I guess, not the physical disc? Oleg. -- Oleg Broytmanhttp://phdru.name/

[Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Guido van Rossum
Hey Antoine, Some of my Dropbox colleagues just drew my attention to the occurrence of case folding in pathlib.py. Basically, case folding as an approach to comparing pathnames is fatally flawed. The issues include: - most OSes these days allow the mounting of both case-sensitive and case-insensi

Re: [Python-Dev] cpython: Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:

2013-04-11 Thread Victor Stinner
2013/4/11 Serhiy Storchaka : > On 09.04.13 23:29, victor.stinner wrote: >> >> http://hg.python.org/cpython/rev/53879d380313 >> changeset: 83216:53879d380313 >> parent: 83214:b7f2d28260b4 >> user:Victor Stinner >> date:Tue Apr 09 21:53:09 2013 +0200 >> summary: >>Add fast

Re: [Python-Dev] cpython: Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:

2013-04-11 Thread Serhiy Storchaka
On 09.04.13 23:29, victor.stinner wrote: http://hg.python.org/cpython/rev/53879d380313 changeset: 83216:53879d380313 parent: 83214:b7f2d28260b4 user:Victor Stinner date:Tue Apr 09 21:53:09 2013 +0200 summary: Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit enc

Re: [Python-Dev] cpython (3.3): don't run frame if it has no stack (closes #17669)

2013-04-11 Thread Benjamin Peterson
2013/4/11 Maciej Fijalkowski : > On Thu, Apr 11, 2013 at 12:28 PM, Nick Coghlan wrote: >> >> On 11 Apr 2013 07:49, "Antoine Pitrou" wrote: >>> >>> On Wed, 10 Apr 2013 23:01:46 +0200 (CEST) >>> benjamin.peterson wrote: >>> > http://hg.python.org/cpython/rev/35cb75b9d653 >>> > changeset: 83238:3

Re: [Python-Dev] cpython (3.3): don't run frame if it has no stack (closes #17669)

2013-04-11 Thread Maciej Fijalkowski
On Thu, Apr 11, 2013 at 12:28 PM, Nick Coghlan wrote: > > On 11 Apr 2013 07:49, "Antoine Pitrou" wrote: >> >> On Wed, 10 Apr 2013 23:01:46 +0200 (CEST) >> benjamin.peterson wrote: >> > http://hg.python.org/cpython/rev/35cb75b9d653 >> > changeset: 83238:35cb75b9d653 >> > branch: 3.3 >> > p

Re: [Python-Dev] cpython (3.3): don't run frame if it has no stack (closes #17669)

2013-04-11 Thread Nick Coghlan
On 11 Apr 2013 07:49, "Antoine Pitrou" wrote: > > On Wed, 10 Apr 2013 23:01:46 +0200 (CEST) > benjamin.peterson wrote: > > http://hg.python.org/cpython/rev/35cb75b9d653 > > changeset: 83238:35cb75b9d653 > > branch: 3.3 > > parent: 83235:172f825d7fc9 > > user:Benjamin Peterson