Python grammar..
Alex Martelli
aleaxit at yahoo.com
Thu Jun 14 07:17:54 EDT 2001
"Mats Wichmann" <xyzmats at laplaza.org> wrote in message
news:3b281e48.38650376 at news.laplaza.org...
...
> >> Yes, but if I were designing a language today, I think I would
> >> request you to be EXPLICIT about "ignoring the return value" --
...
> Seems like you could do it the other way around...add a bit of
> something to the function def to say "this is a procedure". Should
To the *DEF*? Why ever, and what good would that do, given
the name-to-object association is performed dynamically
anyway?! The lack of return, or 'return' w/o args, or
'return None', is all that's needed to signify that the
function is not returning a value _this_ time. I'm talking
about run-time controls, NOT compile-time ones...!
Alex
More information about the Python-list
mailing list