Favorite non-python language trick?
Christos TZOTZIOY Georgiou
tzot at sil-tec.gr
Fri Jul 1 15:58:22 EDT 2005
On Fri, 24 Jun 2005 21:17:09 GMT, rumours say that Ron Adam
<rrr at ronadam.com> might have written:
>I think some sort of inline or deferred local statement would be useful
>also. It would serve as a limited lambda (after it's removed), eval
>alternative, and as a inlined function in some situations as well I think.
>
>Something like:
>
> name = defer <expression>
>
>then used as:
>
> result = name()
>
>The expression name() will never have arguments as it's meant to
>reference it's variables as locals and probably will be replaced
>directly with names's byte code contents at compile time.
>
>Defer could be shortened to def I suppose, but I think defer would be
>clearer. Anyway, it's only a wish list item for now.
This is similar:
http://groups-beta.google.com/group/comp.lang.python/msg/6fc884147852d23d
--
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians
More information about the Python-list
mailing list