|
Panda3D
|
Public Member Functions | |
| def | __new__ |
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.
| def __new__ | ( | self, | |
| name, | |||
| bases, | |||
| dict | |||
| ) |
1.7.3