PEP 318

Greg Ewing (using ieyf4fu02 at
Wed Mar 24 07:10:42 CET 2004

Peter Hansen wrote:
> If it's a list, then just as surely a tuple should be allowed in its 
> place, as in every (?) other such case in Python that I can think of.
> Would that be part of the proposal?

No, in the current version of the PEP, it's not. The square
brackets don't denote construction of a list. No sequence
object of any kind is constructed -- the expressions are
simply evaluated and applied one at a time.

Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand

More information about the Python-list mailing list