[Python-ideas] Definition Symmetry

Jan Kaliszewski zuo at chopin.edu.pl
Fri Feb 1 00:27:07 CET 2013


First of all, the class definition concept and the function definition concept should *not* be considered 'symmetric'. They are fundamentally different in several aspects - especially the body of a class definition is executed once, at the *definition* time (and *before* the actual class is made) and the body of a function definition can be executed multiple times, at the *call* time (and obviously *after* the function is made).

Regards.
*j

-- 
[sent from phone]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130201/7272fcee/attachment.html>


More information about the Python-ideas mailing list