[Python-3000] a slight change to __[get|set|del]item__

2006-05-27 Thread tomer filiba
it's a minor issue, but i thought i should bring it up anyway:today, __getitem__ et al take a single argument. inside the indexer, however, multiple items may be passed. if only one argument is passed, it is passed as-is to __getitem__; however, when multiple arguments are passed, a tupleis passed

Re: [Python-3000] a slight change to __[get|set|del]item__

2006-05-27 Thread Oleg Broytmann
On Sat, May 27, 2006 at 03:15:32PM +0200, tomer filiba wrote: > which makes it impossible to diffrenciate between > >>>y[1, 2] > (1, 2) > > and > >>>y[(1, 2)] > (1, 2) Tuples are not created with parenthesizes. Tuples are created with a comma. Hence 1, 2 *is* a tuple. Just as (1, 2). Ol

Re: [Python-3000] a slight change to __[get|set|del]item__

2006-05-27 Thread Just van Rossum
Oleg Broytmann wrote: > On Sat, May 27, 2006 at 03:15:32PM +0200, tomer filiba wrote: > > which makes it impossible to diffrenciate between > > >>>y[1, 2] > > (1, 2) > > > > and > > >>>y[(1, 2)] > > (1, 2) > >Tuples are not created with parenthesizes. Tuples are created with a comma. Hence >

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

2006-05-27 Thread Collin Winter
On 5/21/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Since **kwds is already a dict (i.e. a mutable container) and since we > long accept a list for *vargs on the call side, I think it is actually > more logical to use a list for receiving *args. I'm working on implementing this change and ha