How would the interpreter know which
Class the rebound “belonged” to?
For example, that same function could be added to two different classes— then what would super() do?
BTW, the Python 2 style of calling súper with the class and instance as arguments might work in the case :-)
As an experiment, try adding the placement method to a different class altogether and see what you get.
class another:
foo = child.placement
-CHB
--
Christopher Barker, PhD (Chris)
Python Language Consulting
- Teaching
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython