[Python-ideas] Make obj[] valid syntax?
Guido van Rossum
guido at python.org
Wed Nov 14 19:55:39 CET 2007
On Nov 14, 2007 10:38 AM, Thomas Heller <theller at ctypes.org> wrote:
> Oleg Broytmann schrieb:
> > On Wed, Nov 14, 2007 at 07:29:52PM +0100, Thomas Heller wrote:
> >> 'obj[]' should behave like 'obj[()]' does:
> >
> > I remember it was discussed and rejected a year or two ago. Still -1
> > from me. Explicit [()] is better than implicit [].
>
> However: obj[(1, 2, 3)] is the same as obj[1, 2, 3]
So what?
x =
is not equivalent to
x = ()
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-ideas
mailing list