[Python-Dev] PEP 318: How I would implement decorators
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Apr 6 23:19:39 EDT 2004
Jim Hugunin <lists at hugunin.net>:
> I like Sam's proposal to add a '*' in front of the list.
>
> *[java_sig("public void meth(int a, int b)"), staticmethod]
> def meth(self, a, b):
> pass
Would this have any implications if we were to decide to
allow * in unpacking one day, i.e.
a, b, *c = some_tuple
It might become legal for an expression to start with *,
then.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list