[Python-ideas] Make obj[] valid syntax?

Thomas Heller theller at ctypes.org
Wed Nov 14 19:38:34 CET 2007


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]




More information about the Python-ideas mailing list