PEP 318

JanC usenet_spam at janc.invalid
Wed Mar 24 02:34:28 CET 2004

Stephen Horne <steve at> schreef:

> To me, the 'as' syntax is misleading. It implies that the syntax is
> asserting a type, style or similar attribute of the function. That may
> be the expected normal use, with 'staticmethod' etc, but my
> understanding is that it is meant to be more general than that. You
> can apply any translation or any sequence of translations that you
> choose.

Maybe "def foo() with [list]" (or "def foo() using [list]"?) is more clear 


"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9

More information about the Python-list mailing list