Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | List of all members
metaclass_def Class Reference
Inheritance diagram for metaclass_def:

Public Member Functions

def __new__
 

Detailed Description

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. 

Member Function Documentation

def __new__ (   self,
  name,
  bases,
  dict 
)