[Python-3000] decorators for variable assignments?

Nicko van Someren nicko at nicko.org
Sat Sep 22 02:18:48 CEST 2007


On 21 Sep 2007, at 22:51, Terry Reedy wrote:

> |  @validate_proxy
> |  proxy = "http://user:passwd@host:port/"
> |
> | be a syntactical sugar for:
> |  proxy = validate_proxy("http://user:passwd@host:port/")
>
> Sorry, to me, this is syntactical pepper -- or worse ;-)

I'm thinking it tends towards "syntactic hákarl" :-)

	Nicko

[*] http://en.wikipedia.org/wiki/Hakarl



More information about the Python-3000 mailing list