[Python-3000] Type Expressions

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 19 02:59:38 CEST 2006


Birch, Bill wrote:

> 	[int, etc]  # a list of ints
> 			# (etc = zero or more of the previous element)

The obvious way to express that would be

    [int, ...]

or at least it would be if ... weren't restricted to slices!

Py3k suggestion: make ... a generally legal expression.

--
Greg


More information about the Python-3000 mailing list