Re: [Python-Dev] PEP 309: Partial method application

2005-08-19 Thread Steven Bethard
Martin v. Löwis wrote: > Steven Bethard wrote: > >>I thought that: > >> operator.attrgetter() was for obj.attr > >> operator.itemgetter() was for obj[integer_index] > > > > > > My point exactly. If we're sticking to the same style, I would expect that > > for > > obj.method(*args, **kwargs)

Re: [Python-Dev] PEP 309: Partial method application

2005-08-19 Thread Josiah Carlson
Steven Bethard <[EMAIL PROTECTED]> wrote: > I agree that an operator.methodcaller() shouldn't try to support > multiple methods. OTOH, the syntax > methodcall.method(*args, **kwargs) > doesn't really lend itself to multiple methods either. But that's OK, we don't want to be calling multiple

Re: [Python-Dev] PEP 309: Partial method application

2005-08-19 Thread Raymond Hettinger
[Steven Bethard] > > I agree that an operator.methodcaller() shouldn't try to support > > multiple methods. OTOH, the syntax > > methodcall.method(*args, **kwargs) > > doesn't really lend itself to multiple methods either. [Josiah Carlson] > But that's OK, we don't want to be calling multiple

Re: [Python-Dev] PEP 309: Partial method application

2005-08-19 Thread Martin v. Löwis
Josiah Carlson wrote: > Steven Bethard <[EMAIL PROTECTED]> wrote: > >>I agree that an operator.methodcaller() shouldn't try to support >>multiple methods. OTOH, the syntax >>methodcall.method(*args, **kwargs) >>doesn't really lend itself to multiple methods either. > > > But that's OK, we d

Re: [Python-Dev] Deprecating builtin id (and moving it to sys())

2005-08-19 Thread Jeremy Hylton
On 8/18/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On 8/17/05, Anthony Baxter <[EMAIL PROTECTED]> wrote: > > If you _really_ want to call a local variable 'id' you can (but shouldn't). > > Disagreed. The built-in namespace is searched last for a reason -- the > design is such that if you do

Re: [Python-Dev] Deprecating builtin id (and moving it to sys())

2005-08-19 Thread Guido van Rossum
On 8/19/05, Jeremy Hylton <[EMAIL PROTECTED]> wrote: > On 8/18/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > On 8/17/05, Anthony Baxter <[EMAIL PROTECTED]> wrote: > > > If you _really_ want to call a local variable 'id' you can (but > > > shouldn't). > > > > Disagreed. The built-in namespace