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
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
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
>
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