[Python-ideas] Make obj valid syntax?
phd at phd.pp.ru
Wed Nov 14 20:00:57 CET 2007
On Wed, Nov 14, 2007 at 07:38:34PM +0100, Thomas Heller 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]
1, 2, 3 is a tuple, and () is a tuple, should there be a syntax for an
empty tuple without parenthesis?
Thomas, there were many arguments in the previous discussion. This one
was there, too. But finally the proposal was rejected.
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas