Re: [Python-Dev] Proposed: add support for UNC paths to all functions in ntpath

2009-05-01 Thread Martin v. Löwis
I've taken the liberty of explicitly CCing Martin just incase he missed the thread with all the noise regarding PEP383. If there are no objections from Martin It's fine with me - I just won't have time to look into the details of that change. Regards, Martin

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread Michael Foord
Zooko O'Whielacronx wrote: [snip...] Would it be possible for Python unicode objects to have a flag indicating whether the 'python-escape' error handler was present? That would serve the same purpose as my failed_decode flag above, and would basically allow me to use the Python APIs directory

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread R. David Murray
On Thu, 30 Apr 2009 at 23:44, Zooko O'Whielacronx wrote: Would it be possible for Python unicode objects to have a flag indicating whether the 'python-escape' error handler was present? That Unless I'm misunderstanding something, couldn't you implement what you need by looking in a given

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-05-01 Thread Stephen J. Turnbull
James Y Knight writes: in python. It seems like the most common reason why people want to use SJIS is to make old pre-unicode apps work right in WINE -- in which case it doesn't actually affect unix python at all. Mounting external drives, especially USB memory sticks which tend to be

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread Zooko O'Whielacronx
Following-up to my own post to correct a major error: On Thu, Apr 30, 2009 at 11:44 PM, Zooko O'Whielacronx zoo...@gmail.com wrote: Folks: My use case (Tahoe-LAFS [1]) requires that I am *able* to read arbitrary binary names from the filesystem and store them so that I can regenerate the

[Python-Dev] Oddity PEP 0 key

2009-05-01 Thread MRAB
I've just noticed an oddity in the key in PEP 0. Most letters are used more than once. Wouldn't it be clearer if different letters were used for Accepted and Active instead of them both being 'A', for example? - A - Accepted proposal - R - Rejected proposal W - Withdrawn proposal - D -

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread MRAB
Zooko O'Whielacronx wrote: Following-up to my own post to correct a major error: On Thu, Apr 30, 2009 at 11:44 PM, Zooko O'Whielacronx zoo...@gmail.com wrote: Folks: My use case (Tahoe-LAFS [1]) requires that I am *able* to read arbitrary binary names from the filesystem and store them so

[Python-Dev] Summary of Python tracker Issues

2009-05-01 Thread Python tracker
ACTIVITY SUMMARY (04/24/09 - 05/01/09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2190 open (+34) / 15527 closed (+29) / 17717 total (+63) Open issues with patches: 861

Re: [Python-Dev] .pth files are evil

2009-05-01 Thread Chris Withers
M.-A. Lemburg wrote: If the package really requires adding one or more directories on sys.path (e.g. because it has not yet been structured to support dotted-name import), a path configuration file named package.pth can be placed in either the site-python or site-packages directory. ... A

Re: [Python-Dev] PEP 382: little help for stupid people?

2009-05-01 Thread Chris Withers
M.-A. Lemburg wrote: The much more common use case is that of wanting to have a base package installation which optional add-ons that live in the same logical package namespace. The PEP provides a way to solve this use case by giving both developers and users a standard at hand which they can

Re: [Python-Dev] PEP 382: Namespace Packages

2009-05-01 Thread Chris Withers
P.J. Eby wrote: At 06:15 PM 4/15/2009 +0200, M.-A. Lemburg wrote: The much more common use case is that of wanting to have a base package installation which optional add-ons that live in the same logical package namespace. Please see the large number of Zope and PEAK distributions on PyPI as

Re: [Python-Dev] PEP 382: Namespace Packages

2009-05-01 Thread Chris Withers
P.J. Eby wrote: It's unclear, however, who is using base packages besides mx.* and ll.*, although I'd guess from the PyPI listings that perhaps Django is. (It seems that base packages are more likely to use a 'base-extension' naming pattern, vs. the 'namespace.project' pattern used by pure

Re: [Python-Dev] PEP 382: little help for stupid people?

2009-05-01 Thread Martin v. Löwis
In either of the proposals on the table, what code would I write and where to have a base package with a set of add-on packages? I don't quite understand the question. Why would you want to write code (except for the code that actually is in the packages)? PEP 382 is completely declarative -

Re: [Python-Dev] PEP 382: little help for stupid people?

2009-05-01 Thread Chris Withers
Martin v. Löwis wrote: In either of the proposals on the table, what code would I write and where to have a base package with a set of add-on packages? I don't quite understand the question. Why would you want to write code (except for the code that actually is in the packages)? PEP 382 is

Re: [Python-Dev] headers api for email package

2009-05-01 Thread Chris Withers
Where you just want a damned valid email and stop making my life hard!: Message['Subject']='Some text' Yes. In which case I propose we guess the encoding as 1) ascii, 2) utf-8, 3) wtf? Well, we're talking about Python 3 here right? In which case the above involves only unicode, so why do

Re: [Python-Dev] [Email-SIG] headers api for email package

2009-05-01 Thread Chris Withers
Stephen J. Turnbull wrote: str(message['Subject']) Yes for unstructured headers like Subject. For structured headers... hmm. Well, suppose we get really radical here. *People* see email as (rich-)text. So ... message['Subject'] returns an object, partly to be consistent with

Re: [Python-Dev] PEP 382: little help for stupid people?

2009-05-01 Thread Martin v. Löwis
In either of the proposals on the table, what code would I write and where to have a base package with a set of add-on packages? I don't quite understand the question. Why would you want to write code (except for the code that actually is in the packages)? PEP 382 is completely declarative

Re: [Python-Dev] PEP 382: Namespace Packages

2009-05-01 Thread Martin v. Löwis
It's unclear, however, who is using base packages besides mx.* and ll.*, although I'd guess from the PyPI listings that perhaps Django is. (It seems that base packages are more likely to use a 'base-extension' naming pattern, vs. the 'namespace.project' pattern used by pure packages.)

Re: [Python-Dev] PEP 382: Namespace Packages

2009-05-01 Thread P.J. Eby
At 05:35 PM 5/1/2009 +0100, Chris Withers wrote: P.J. Eby wrote: It's unclear, however, who is using base packages besides mx.* and ll.*, although I'd guess from the PyPI listings that perhaps Django is. (It seems that base packages are more likely to use a 'base-extension' naming pattern,

Re: [Python-Dev] PEP 382: Namespace Packages

2009-05-01 Thread P.J. Eby
At 07:41 PM 5/1/2009 +0200, Martin v. Löwis wrote: It's unclear, however, who is using base packages besides mx.* and ll.*, although I'd guess from the PyPI listings that perhaps Django is. (It seems that base packages are more likely to use a 'base-extension' naming pattern, vs. the

Re: [Python-Dev] PEP 382: Namespace Packages

2009-05-01 Thread Martin v. Löwis
Actually, if you are using only the distutils, you can do this by listing only modules in the addon projects; this is how the ll.* tools are doing it. That only works if the packages are all being installed in the same directory, though, not as eggs. Right: if all portions install into the

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread Benjamin Peterson
2009/5/1 MRAB goo...@mrabarnett.plus.com: I've just noticed an oddity in the key in PEP 0. Most letters are used more than once. Wouldn't it be clearer if different letters were used for Accepted and Active instead of them both being 'A', for example? - A - Accepted proposal - R - Rejected

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread Terry Reedy
Zooko O'Whielacronx wrote: Following-up to my own post to correct a major error: Is it true that srcbytes.encode(srcencoding, 'python-escape').decode('utf-8', 'python-escape') will always produce srcbytes ? That is my Requirement If you start with bytes, decode with utf-8b to unicode

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread MRAB
Benjamin Peterson wrote: 2009/5/1 MRAB goo...@mrabarnett.plus.com: I've just noticed an oddity in the key in PEP 0. Most letters are used more than once. Wouldn't it be clearer if different letters were used for Accepted and Active instead of them both being 'A', for example? - A - Accepted

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread Michael Foord
MRAB wrote: Benjamin Peterson wrote: 2009/5/1 MRAB goo...@mrabarnett.plus.com: I've just noticed an oddity in the key in PEP 0. Most letters are used more than once. Wouldn't it be clearer if different letters were used for Accepted and Active instead of them both being 'A', for example? -

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread Barry Warsaw
On May 1, 2009, at 5:55 PM, Michael Foord wrote: P for Proposal (to replace Active Proposal)? Every active PEP is a proposal... +1 Maybe even s/Active/Proposed/g ? -Barry PGP.sig Description: This is a digitally signed message part ___

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread Cameron Simpson
On 01May2009 18:38, Martin v. L?wis mar...@v.loewis.de wrote: | Okay, I am wrong about this. Having a flag to remember whether I had to | fall back to the utf-8b trick is one method to implement my requirement, | but my actual requirement is this: | | Requirement: either the unicode string

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread MRAB
Michael Foord wrote: MRAB wrote: Benjamin Peterson wrote: 2009/5/1 MRAB goo...@mrabarnett.plus.com: I've just noticed an oddity in the key in PEP 0. Most letters are used more than once. Wouldn't it be clearer if different letters were used for Accepted and Active instead of them both being

[Python-Dev] svn down?

2009-05-01 Thread Eric Smith
When checking in, I get: Transmitting file data .svn: Commit failed (details follow): svn: Can't create directory '/data/repos/projects/db/transactions/72186-1.txn': Read-only file system With 'svn up', I get: svn: Can't find a temporary directory: Internal error

Re: [Python-Dev] svn down?

2009-05-01 Thread Benjamin Peterson
2009/5/1 Eric Smith e...@trueblade.com: When checking in, I get: Transmitting file data .svn: Commit failed (details follow): svn: Can't create directory '/data/repos/projects/db/transactions/72186-1.txn': Read-only file system With 'svn up', I get: svn: Can't find a temporary directory:

[Python-Dev] yield from?

2009-05-01 Thread Benjamin Peterson
What's the status of yield from? There's still a small window open for a patch to be checked into 3.1's branch. I haven't been following the python-ideas threads, so I'm not sure if it's ready yet. -- Regards, Benjamin ___ Python-Dev mailing list

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread Zooko O'Whielacronx
Folks: Being new to the use of gmail, I accidentally sent the following only to MvL and not to the list. He promptly replied with a helpful counterexample showing that my design can suffer collisions. :-) Regards, Zooko On Fri, May 1, 2009 at 10:38 AM, Martin v. Löwis mar...@v.loewis.de

Re: [Python-Dev] yield from?

2009-05-01 Thread Guido van Rossum
Alas, I haven't been following it either recently. Too bad, really, because before I left (now three weeks ago) it was already pretty close. We could perhaps even check in Greg's patch (which I tried and looked like a solid implementation of his proposal at the time) and finagle it for b2. One

Re: [Python-Dev] PEP 383 and GUI libraries

2009-05-01 Thread James Y Knight
On May 1, 2009, at 9:42 PM, Zooko O'Whielacronx wrote: Yep, I reversed the order of encode() and decode(). However, my whole statement was utterly wrong and shows that I still didn't fully get it yet. I have flip-flopped again and currently think that PEP 383 is useless for this use case and

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread Alexander Belopolsky
.. leaving just 'Rejected' and 'Replaced' to be disambiguated. 'X' or 'Z' for Rejected? Looks like a perfect start for a bikeshed discussion. :-) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread Stephen J. Turnbull
Barry Warsaw writes: On May 1, 2009, at 5:55 PM, Michael Foord wrote: P for Proposal (to replace Active Proposal)? Every active PEP is a proposal... +1 Maybe even s/Active/Proposed/g ? Shouldn't that be s/Active/Proposed/g duck /

Re: [Python-Dev] Oddity PEP 0 key

2009-05-01 Thread Stephen J. Turnbull
Alexander Belopolsky writes: .. leaving just 'Rejected' and 'Replaced' to be disambiguated. 'X' or 'Z' for Rejected? Looks like a perfect start for a bikeshed discussion. :-) The Japanese contingent suggests O (UPPERCASE LATIN LETTER O) for accepted and X for rejected. (Actually