]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make basechain a class variable in stead of initializing it in __init__. That way...
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 28 Jun 2001 22:07:30 +0000 (22:07 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 28 Jun 2001 22:07:30 +0000 (22:07 +0000)
Tools/bgen/bgen/bgenObjectDefinition.py

index b6f33fe7470e49dbf477c05c889862471b134c2a..e6db9cd4a597ee7e4ca4f2031d4345a3d5d98e22 100644 (file)
@@ -3,6 +3,7 @@ from bgenGeneratorGroup import GeneratorGroup
 
 class ObjectDefinition(GeneratorGroup):
        "Spit out code that together defines a new Python object type"
+       basechain = "NULL"
 
        def __init__(self, name, prefix, itselftype):
                """ObjectDefinition constructor.  May be extended, but do not override.
@@ -21,7 +22,6 @@ class ObjectDefinition(GeneratorGroup):
                self.typename = name + '_Type'
                self.argref = ""        # set to "*" if arg to <type>_New should be pointer
                self.static = "static " # set to "" to make <type>_New and <type>_Convert public
-               self.basechain = "NULL" # set to &<basetype>_chain to chain methods
 
        def add(self, g, dupcheck=0):
                g.setselftype(self.objecttype, self.itselftype)