Re: [Python-Dev] Creating dicts from dict subclasses

2006-12-13 Thread Armin Rigo
Hi Walter, On Wed, Dec 13, 2006 at 05:57:16PM +0100, Walter D?rwald wrote: > I tried to reimplement weakref.WeakValueDictionary as a subclass of > dict. The test passes except for one problem: To compare results > test_weakref.py converts a weakdict to a real dict via dict(weakdict). > This no lon

Re: [Python-Dev] Open CPython VM for type information

2006-12-13 Thread Kay Schluehr
Brett Cannon schrieb: > > > On 12/12/06, *Kay Schluehr* <[EMAIL PROTECTED] > > wrote: > > Dear Python developers, > > while the JVM is opened to support dynamically typed languages [1] I > wonder if the CPyVM could not show more openness to statically typed >

Re: [Python-Dev] Creating dicts from dict subclasses

2006-12-13 Thread Guido van Rossum
On 12/13/06, Walter Dörwald <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > On 12/13/06, Walter Dörwald <[EMAIL PROTECTED]> wrote: > >> I tried to reimplement weakref.WeakValueDictionary as a subclass of > >> dict. The test passes except for one problem: To compare results > >> test_weakre

Re: [Python-Dev] Creating dicts from dict subclasses

2006-12-13 Thread Walter Dörwald
Guido van Rossum wrote: > On 12/13/06, Walter Dörwald <[EMAIL PROTECTED]> wrote: >> I tried to reimplement weakref.WeakValueDictionary as a subclass of >> dict. The test passes except for one problem: To compare results >> test_weakref.py converts a weakdict to a real dict via dict(weakdict). >> Th

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-13 Thread Oleg Broytmann
On Wed, Dec 13, 2006 at 10:00:48PM +0100, "Martin v. L?wis" wrote: > Personally, I think very elaborate support for HTTP in httplib, and very > few generalizations and abstractions in urllib* would be the "right" > way to do it, IMO. For example, there might be the notion of an > "http session" obj

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-13 Thread Martin v. Löwis
Oleg Broytmann schrieb: >HTTP is one of the most widely known and used protocol. Would you better > have big httplib and small abstract urllib? so abstract it doesn't allow a > user to change protocol-specific handling? Personally, I think very elaborate support for HTTP in httplib, and very f

Re: [Python-Dev] Open CPython VM for type information

2006-12-13 Thread Brett Cannon
On 12/12/06, Kay Schluehr <[EMAIL PROTECTED]> wrote: Dear Python developers, while the JVM is opened to support dynamically typed languages [1] I wonder if the CPyVM could not show more openness to statically typed languages? Hereby I don't think that much about arbitrary languages for the CPyV

Re: [Python-Dev] Creating dicts from dict subclasses

2006-12-13 Thread Guido van Rossum
On 12/13/06, Walter Dörwald <[EMAIL PROTECTED]> wrote: > I tried to reimplement weakref.WeakValueDictionary as a subclass of > dict. The test passes except for one problem: To compare results > test_weakref.py converts a weakdict to a real dict via dict(weakdict). > This no longer works because PyD

Re: [Python-Dev] [Python-checkins] MSI being downloaded 10x morethan all other files?!

2006-12-13 Thread Guido van Rossum
No they aren't using Twisted. On 12/12/06, Terry Jones <[EMAIL PROTECTED]> wrote: > > "Guido" == Guido van Rossum <[EMAIL PROTECTED]> writes: > Guido> And I just found out (after everyone else probably :-) that YouTube > Guido> is almost entirely written in Python. (And now I can rub shoulders

[Python-Dev] Creating dicts from dict subclasses

2006-12-13 Thread Walter Dörwald
I tried to reimplement weakref.WeakValueDictionary as a subclass of dict. The test passes except for one problem: To compare results test_weakref.py converts a weakdict to a real dict via dict(weakdict). This no longer works because PyDict_Merge() does a PyDict_Check() on the argument and then igno

Re: [Python-Dev] [Python-checkins] MSI being downloaded 10x morethan all other files?!

2006-12-13 Thread Terry Jones
> "Guido" == Guido van Rossum <[EMAIL PROTECTED]> writes: Guido> And I just found out (after everyone else probably :-) that YouTube Guido> is almost entirely written in Python. (And now I can rub shoulders Guido> with the developers since they're all Googlers now... :-) Are any other details

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-13 Thread Oleg Broytmann
On Wed, Dec 13, 2006 at 09:05:49AM +0100, "Martin v. L?wis" wrote: > As for authenticated proxies: I think they ought to be implemented > in httplib as well. Agree. > If everybody wants to become urllib just a better library to access > http servers, I probably can't do much about it, though.

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-13 Thread Martin v. Löwis
Oleg Broytmann schrieb: >IMO you better don't because urllib2 provides not only an abstraction, > but a lot of services (authenticated proxies, cached FTP files)... If you are using http ranges, cached FTP files won't do any good. As for authenticated proxies: I think they ought to be implemen