Is this possible in Python?
Fredrik Lundh
fredrik at pythonware.com
Tue Mar 14 05:49:38 EST 2006
"jalanb" wrote:
> You might like the version here:
> http://www.jorendorff.com/toys/out.html
which only works if 1) you're using a Python implementation that supports
those attributes, 2) the source code is available, 3) the expression is written
on a single line, and 4) you don't use confusing comments after the function
call (and probably some more things I cannot think of right now).
perfectly valid Python constructs like
out(
temp
)
or
out(temp) # XXX: should use gettemp() instead
breaks the function.
> Especially the "need to know" presentation, which is cute
indeed.
</F>
More information about the Python-list
mailing list