PEP318 alternate syntax idea

Ville Vainio ville at
Tue Mar 23 12:12:39 CET 2004

>>>>> "Stephen" == Stephen Horne <steve at> writes:

    Stephen> Do we really want people writing...

    Stephen> d = lambda x : staticmethod (someotherdecoration (whateverdeco (x))

Probably not - but the 'as' syntax should accept any iterable, so it
could be

d = [d1, d2, d3]

or with currently proposed syntax

d = functional.compose([d1,d2,d3])

Which just needs the not-yet-implemented 'functional' module :-).

Ville Vainio

More information about the Python-list mailing list