Re: [Python-Dev] Supporting raw bytes data in urllib.parse.* (was Re: Polymorphic best practices)

2010-09-18 Thread Steve Holden
On 9/18/2010 10:03 PM, Nick Coghlan wrote: > On Sun, Sep 19, 2010 at 4:18 AM, John Nagle wrote: >> On 9/18/2010 2:29 AM, python-dev-requ...@python.org wrote: >>> >>> Polymorphic best practices [was: (Not) delaying the 3.2 release] >> >> If you're hung up on this, try writing the user-level docum

[Python-Dev] Supporting raw bytes data in urllib.parse.* (was Re: Polymorphic best practices)

2010-09-18 Thread Nick Coghlan
On Sun, Sep 19, 2010 at 4:18 AM, John Nagle wrote: > On 9/18/2010 2:29 AM, python-dev-requ...@python.org wrote: >> >> Polymorphic best practices [was: (Not) delaying the 3.2 release] > >   If you're hung up on this, try writing the user-level documentation > first.  Your target audience is a worki

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Sridhar Ratnakumar
On 2010-09-18, at 2:29 AM, Thomas Lotze wrote: > I'd like to expand [tl.eggdeps] > to analyse dependencies between any packages on PyPI but I can't > as long as dependency information is not available without actually > installing things. [...] On 2010-09-18, at 2:29 AM, Thomas Lotze wrote: >>

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Greg Ewing
Victor Stinner wrote: Eg. one of the most important function of pysandbox is proxy() (a function to create a read only view of a object outside the sandbox, especially on an import), if you replace isinstance() by a function which always return True: you can get unmodified objects I don't f

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Greg Ewing
Robert Collins wrote: __builtins__ is in everyone's global namespace, so if it can be mutated, different python programs running in the same sandbox can affect each other. So give each program its own copy of __builtins__. -- Greg ___ Python-Dev mai

Re: [Python-Dev] os.path.normcase rationale?

2010-09-18 Thread Guido van Rossum
On Sat, Sep 18, 2010 at 2:39 PM, Chris Withers wrote: > I'm curious as to why, with a file called "Foo.txt" on a case descriminating > but case insensitive filesystem, os.path.normcase('FoO.txt') will return > "foo.txt" rather than "Foo.txt"? > > Yes, I know the behaviour is documented, but I'm wo

[Python-Dev] os.path.normcase rationale?

2010-09-18 Thread Chris Withers
Hi All, I'm curious as to why, with a file called "Foo.txt" on a case descriminating but case insensitive filesystem, os.path.normcase('FoO.txt') will return "foo.txt" rather than "Foo.txt"? Yes, I know the behaviour is documented, but I'm wondering if anyone can remember the rationale for t

Re: [Python-Dev] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
Am 18.09.2010 15:27, schrieb Steve Holden: > On 9/18/2010 9:21 AM, "Martin v. Löwis" wrote: >> IT WILL BE NOT IN PREFERENCE TO DISTUTILS2. > > No need to shout. I really felt that this otherwise wouldn't be heard - I tried to say it a number of times before, and it was ignored. Regards, Martin _

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread M.-A. Lemburg
"Martin v. Löwis" wrote: >> So you are fine with publishing "slightly incorrect" metadata at PyPI >> ? I am not. > > I really have no intuition for in how many cases the data will be > incorrect. However, if users find that the data is incorrect for > specific package, they ought to complain to th

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Fred Drake
2010/9/18 "Martin v. Löwis" : > Any other opinions? -1 from me as well; I see no reason to encourage use of bad metadata, given mechanisms to get correct metadata exist (running "setup.py egg_info", as others have pointed out). I understand there are perceived uses for such data, but it's just as

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Michael Foord
On 18/09/2010 18:27, Nick Coghlan wrote: On Sat, Sep 18, 2010 at 10:24 PM, Michael Foord wrote: On 18/09/2010 12:25, "Martin v. Löwis" wrote: I think you are misunderstanding. The infrastructure will *not* depend on the old formats. Instead, packaging that have that information will provid

Re: [Python-Dev] Polymorphic best practices

2010-09-18 Thread John Nagle
On 9/18/2010 2:29 AM, python-dev-requ...@python.org wrote: Polymorphic best practices [was: (Not) delaying the 3.2 release] If you're hung up on this, try writing the user-level documentation first. Your target audience is a working-level Web programmer, not someone who knows six programmin

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Nick Coghlan
On Sat, Sep 18, 2010 at 10:24 PM, Michael Foord wrote: >  On 18/09/2010 12:25, "Martin v. Löwis" wrote: I think you are misunderstanding. The infrastructure will *not* depend on the old formats. Instead, packaging that have that information will provide it, packages that don't

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread P.J. Eby
At 06:06 PM 9/18/2010 +0200, Martin v. Löwis wrote: Am 18.09.10 17:49, schrieb P.J. Eby: At 05:19 PM 9/18/2010 +0200, Martin v. Löwis wrote: In the specific case of tl.eggdeps, the dependency information is only used to create printable graphs. If this turns out to be slightly incorrect, people

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Thomas Lotze
Stephen J. Turnbull wrote: > In the meantime, it's better to let people using a competing "standard" > (even if it's neither very good nor a "real" standard) do their thing > until they see the light. It's not even about the people who consume egg-info data seeing the light, it's about PEP-345 da

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
Am 18.09.10 17:49, schrieb P.J. Eby: At 05:19 PM 9/18/2010 +0200, Martin v. Löwis wrote: In the specific case of tl.eggdeps, the dependency information is only used to create printable graphs. If this turns out to be slightly incorrect, people would notice if they try to use the packages in ques

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
So you are fine with publishing "slightly incorrect" metadata at PyPI ? I am not. I really have no intuition for in how many cases the data will be incorrect. However, if users find that the data is incorrect for specific package, they ought to complain to the maintainer. I don't understand

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Stephen J. Turnbull
Tarek Ziadé writes: > "Good enough metadata" sounds completely wrong to me. I hate to break it to you, but experience shows that the XEmacs package system, whose dependency tracking is in theory a pile of braindamaged rubbish, an abomination in the sight of She Who Created The World With 4-Space

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread P.J. Eby
At 05:19 PM 9/18/2010 +0200, Martin v. Löwis wrote: In the specific case of tl.eggdeps, the dependency information is only used to create printable graphs. If this turns out to be slightly incorrect, people would notice if they try to use the packages in question. By the way, just providing t

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Tarek Ziadé
2010/9/18 "Martin v. Löwis" : >> So, I don't understand what is the benefit here, since a serious >> installer will re-run egg_info every time. > > I think the main applications that people are after are not builds. > They want the dependency information without downloading the packages, > and depe

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
So, I don't understand what is the benefit here, since a serious installer will re-run egg_info every time. I think the main applications that people are after are not builds. They want the dependency information without downloading the packages, and dependency information for packages they have

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
So if the use case is to provide dependency information exposing egg_info is not the right way to do it - and tools that use it will be using potentially (and frequently) inaccurate information. I stand by the point that once we start providing this information tools will start using it, and they

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Tarek Ziadé
On Sat, Sep 18, 2010 at 4:01 PM, Michael Foord wrote: >  Ok, I'm sorry - PEP 345 information is available via the PyPI API. (So > exposing egg_info would not be promoting it *over* distutils2 but it would > still be promoting and blessing it). > > Tarek's main point still stands though. The depend

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Michael Foord
Ok, I'm sorry - PEP 345 information is available via the PyPI API. (So exposing egg_info would not be promoting it *over* distutils2 but it would still be promoting and blessing it). Tarek's main point still stands though. The dependency information in the egg_info is tied to the platform and

Re: [Python-Dev] egg_info in PyPI

2010-09-18 Thread Steve Holden
On 9/18/2010 9:21 AM, "Martin v. Löwis" wrote: > IT WILL BE NOT IN PREFERENCE TO DISTUTILS2. No need to shout. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangocon.us/ See Python Video! http://python.mirocommunity.o

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
No. See above comment. If exposing this information has no value then don't do it. If it does have value, then we are blessing it - and therefore blessing it *over* other formats. No: not *over*. Only over formats that don't get exposed. However, the PEP 345 data are *already* exposed, via HTML,

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Michael Foord
On 18/09/2010 12:25, "Martin v. Löwis" wrote: I think you are misunderstanding. The infrastructure will *not* depend on the old formats. Instead, packaging that have that information will provide it, packages that don't will not. The infrastructure is entirely agnostic on whether the data is av

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
I think you are misunderstanding. The infrastructure will *not* depend on the old formats. Instead, packaging that have that information will provide it, packages that don't will not. The infrastructure is entirely agnostic on whether the data is available or not. In particular, it will not try to

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread David Cournapeau
On Sat, Sep 18, 2010 at 7:50 PM, Michael Foord wrote: >  On 18/09/2010 11:48, David Cournapeau wrote: >> >> On Sat, Sep 18, 2010 at 7:39 PM, Michael Foord >>  wrote: >>> >>>  On 18/09/2010 11:03, "Martin v. Löwis" wrote: That's really sad. So people will have to wait a few years to

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Michael Foord
On 18/09/2010 11:48, David Cournapeau wrote: On Sat, Sep 18, 2010 at 7:39 PM, Michael Foord wrote: On 18/09/2010 11:03, "Martin v. Löwis" wrote: That's really sad. So people will have to wait a few years to efficiently implement tools that they could implement today. Why a few years? Tha

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread David Cournapeau
On Sat, Sep 18, 2010 at 7:39 PM, Michael Foord wrote: >  On 18/09/2010 11:03, "Martin v. Löwis" wrote: >> That's really sad. So people will have to wait a few years to efficiently >> implement tools that they could implement today. > > Why a few years? That's the time it will take for all packag

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Michael Foord
On 18/09/2010 11:03, "Martin v. Löwis" wrote: With the distutils2 work very close to landing in the standard library, providing infrastructure that will cause tools to *depend* on the old formats is a very bad idea. I think you are misunderstanding. The infrastructure will *not* depend on the

Re: [Python-Dev] [Python-checkins] r84877 - python/branches/release27-maint/Lib/posixpath.py

2010-09-18 Thread Victor Stinner
Le samedi 18 septembre 2010 07:40:44, hirokazu.yamamoto a écrit : > Author: hirokazu.yamamoto > Date: Sat Sep 18 07:40:44 2010 > New Revision: 84877 > > Log: > Added missing import. > > Modified: python/branches/release27-maint/Lib/posixpath.py > ==

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Victor Stinner
Le samedi 18 septembre 2010 10:39:58, Robert Collins a écrit : > __builtins__ is in everyone's global namespace, so if it can be > mutated, different python programs running in the same sandbox can > affect each other. > > Ditto sys.modules and os environ, but I guess that those are already > addr

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
With the distutils2 work very close to landing in the standard library, providing infrastructure that will cause tools to *depend* on the old formats is a very bad idea. I think you are misunderstanding. The infrastructure will *not* depend on the old formats. Instead, packaging that have that i

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Victor Stinner
Le samedi 18 septembre 2010 10:24:49, Greg Ewing a écrit : > Victor Stinner wrote: > > I'm still developing irregulary my sandbox project since last june. > > > > Today, the biggest problem is the creation of a read only view of the > > __builtins__ dictionary. > > Why do you think you need to do

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Michael Foord
On 18/09/2010 08:52, "Martin v. Löwis" wrote: I am in full agreement with Tarek here. At ActiveState, we maintain our own index that differs from PyPI in two ways (among others): I think you are saying something very different from what Tarek says. IIUC, you are saying that egg-info is ill-def

Re: [Python-Dev] egg_info in PyPI

2010-09-18 Thread Thomas Lotze
Hi there, I'm going to add my own 2 cents to the discussion as I'm involved in the matter here at the DZUG conference. Tarek Ziadé wrote: > Now you want to publish another metadata format at PyPI ? If PyPI takes > that direction and adopts, promotes and publishes a standard that is not > the one

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Robert Collins
On Sat, Sep 18, 2010 at 8:24 PM, Greg Ewing wrote: > Victor Stinner wrote: > >> I'm still developing irregulary my sandbox project since last june. > >> Today, the biggest problem is the creation of a read only view of the >> __builtins__ dictionary. > > Why do you think you need to do this? What

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Greg Ewing
Victor Stinner wrote: I'm still developing irregulary my sandbox project since last june. Today, the biggest problem is the creation of a read only view of the __builtins__ dictionary. Why do you think you need to do this? What form of attack would a writable __builtins__ expose you to that

Re: [Python-Dev] [Catalog-sig] egg_info in PyPI

2010-09-18 Thread Martin v. Löwis
I am in full agreement with Tarek here. At ActiveState, we maintain our own index that differs from PyPI in two ways (among others): I think you are saying something very different from what Tarek says. IIUC, you are saying that egg-info is ill-defined and may cause subtle problems. So you are s