|
Panda3D
|
Public Member Functions | |
| __new__ (self, name, bases, dict) | |
A metaclass is invoked by Python when the class definition is read, for instance to define a child class. By defining a metaclass for class_p3d and class_package, we can get a callback when we encounter "class foo(p3d)" in the pdef file. The callback actually happens after all of the code within the class scope has been parsed first.
| __new__ | ( | self, | |
| name, | |||
| bases, | |||
| dict ) |