Re: [Python-Dev] PEP 309 enhancements

2005-02-28 Thread Nick Coghlan
Samuele Pedroni wrote: Nick Coghlan wrote: The initial suggestion was to provide a __get__ method on partial objects, which forces the insertion of the reference to self at the beginning of the argument list instead of at the end: def __get__(self, obj, type=None): if obj is None:

Re: [Python-Dev] PEP 309 enhancements

2005-02-27 Thread Samuele Pedroni
Nick Coghlan wrote: The initial suggestion was to provide a __get__ method on partial objects, which forces the insertion of the reference to self at the beginning of the argument list instead of at the end: def __get__(self, obj, type=None): if obj is None: return self

Re: [Python-Dev] PEP 309 enhancements

2005-02-26 Thread Nick Coghlan
Paul Moore wrote: Personally, I'd rather see partial as it stands, with its current limitations, included. The alternative seems to be a potentially long discussion, petering out without conclusion, and the whole thing missing Python 2.5. (I know that's a long way off, but this already happened wi

Re: [Python-Dev] PEP 309 enhancements

2005-02-26 Thread Paul Moore
On Sat, 26 Feb 2005 16:50:06 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Moving a discussion from the PEP309 SF tracker (Patch #941881) to here, since > it's gone beyond the initial PEP 309 concept (and the SF tracker is a lousy > place to have a design discussion, anyway). > > The discussion

[Python-Dev] PEP 309 enhancements

2005-02-25 Thread Nick Coghlan
Moving a discussion from the PEP309 SF tracker (Patch #941881) to here, since it's gone beyond the initial PEP 309 concept (and the SF tracker is a lousy place to have a design discussion, anyway). The discussion started when Steven Bethard pointed out that partial objects can't be used as inst