Marko Rauhamaa wrote:
For (almost) all practical purposes, that is the Python way as well. If
object instantiation (conceptually) copied the class's methods into the
object's dict, you'd get the semantics I'm looking for.

If things worked the way you want, it would be
impossible to store a function in an instance
attribute and get it out again *without* it
being treated as a method and getting 'self'
added to its arguments. That would be a
considerable nuisance when dealing with
callbacks and the like.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to