Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Nick Coghlan
Brett Cannon wrote: > So perhaps there is a way to create some kind of "virtual packages" or > "categories" in which existing modules could register themselves. This > could allow third-party modules (e.g. "gtk") to register themselves in > stdlib-supplied virtual packages (e.g. "gu

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Paul Moore
On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > Why would a 3rd-party module be installed into the stdlib namespace? > net.jabber wouldn't exist unless it was in the stdlib or the module's author > decided to be snarky and inject their module into the stdlib namespace. Do you really want the

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Ronald Oussoren
On 1-jun-2006, at 13:29, Paul Moore wrote: > On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote: >> Why would a 3rd-party module be installed into the stdlib namespace? >> net.jabber wouldn't exist unless it was in the stdlib or the >> module's author >> decided to be snarky and inject their mo

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Brett Cannon
On 6/1/06, Ronald Oussoren <[EMAIL PROTECTED]> wrote: On 1-jun-2006, at 13:29, Paul Moore wrote:> On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote:>> Why would a 3rd-party module be installed into the stdlib namespace? >> net.jabber wouldn't exist unless it was in the stdlib or the>> module's aut

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Josiah Carlson
"Paul Moore" <[EMAIL PROTECTED]> wrote: > > On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > > Why would a 3rd-party module be installed into the stdlib namespace? > > net.jabber wouldn't exist unless it was in the stdlib or the module's author > > decided to be snarky and inject their modul

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Aaron Bingham
Paul Moore wrote: >On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > > >>Why would a 3rd-party module be installed into the stdlib namespace? >>net.jabber wouldn't exist unless it was in the stdlib or the module's author >>decided to be snarky and inject their module into the stdlib namespac

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Brett Cannon
On 6/1/06, Aaron Bingham <[EMAIL PROTECTED]> wrote: Paul Moore wrote:>On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote:Why would a 3rd-party module be installed into the stdlib namespace? >>net.jabber wouldn't exist unless it was in the stdlib or the module's author>>decided to be snarky and

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Terry Reedy
"Brett Cannon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Well, personally I would like to clean up the stdlib, but I don't want to >make it >too lean since the whole "Batteries Included" thing is handy. Definitely as to both. > As for sanctioned libraries that don't come in

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Terry Reedy
"Aaron Bingham" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm confused. As far as I can see, a reserved prefix (the "py" or > "stdlib" package others have mentioned) is the only reliable way to > avoid naming conflicts with 3rd-party packages with a growing standard > library

Re: [Python-3000] Using a list for *args (was: Type annotations: annotating generators)

2006-06-01 Thread Collin Winter
On 6/1/06, Neal Norwitz <[EMAIL PROTECTED]> wrote: > Could you run a benchmark before and after this patch? I'd like to > know speed diff. (Sorry you got this twice, Neal.) I've attached the benchmarks as a comment on the patch, but I'll repeat them here. All times are usecs per loop. ./python

Re: [Python-3000] Using a list for *args (was: Type annotations:annotating generators)

2006-06-01 Thread Michael Chermside
Collin Winter writes: > I've attached the benchmarks as a comment on the patch, but I'll > repeat them here. All times are usecs per loop. [statistics showing list is about 15% slower] My memory is fuzzy here. Can someone repeat for me the reasons why we wanted to use list? Were we just tryi

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Mike Klaas
Terry Reedy wrote: > Because you have to type it over and over. hmm, With the right context manager: import py with py as py: from gui import tkinker import net with net as net: import httplib import urllib -Mike ___ Python

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Ronald Oussoren
On 1-jun-2006, at 17:44, Brett Cannon wrote: > > > On 6/1/06, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > On 1-jun-2006, at 13:29, Paul Moore wrote: > > > On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote: > >> Why would a 3rd-party module be installed into the stdlib > namespace? > >> net.ja

Re: [Python-3000] packages in the stdlib

2006-06-01 Thread Brett Cannon
On 6/1/06, Ronald Oussoren <[EMAIL PROTECTED]> wrote: On 1-jun-2006, at 17:44, Brett Cannon wrote:>>> On 6/1/06, Ronald Oussoren <[EMAIL PROTECTED]> wrote:> On 1-jun-2006, at 13:29, Paul Moore wrote: >> > On 5/31/06, Brett Cannon <[EMAIL PROTECTED]> wrote:> >> Why would a 3rd-party module be instal

Re: [Python-3000] Wild idea: Deferred Evaluation & Implicit Lambda

2006-06-01 Thread Greg Ewing
Toby Dickenson wrote: > The ?? operator first evaluated its left operand. If that succeeds its value > is returned. If that raised an exception it evaluates and returns its right > operand. That allowed your example to be written: > > value = a[key] ?? b[key] ?? 0 That wouldn't make sens

Re: [Python-3000] weakrefs and cyclic references

2006-06-01 Thread Greg Ewing
tomer filiba wrote: > you can solve the problem using > weakref.proxy > ... > so why not do this automatically? I would *not* want to have some of my references chosen at random and automatically made into weak ones. I may temporarily create a cycle and later break it by removing one of the refer