diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2005-07-08 15:03:37 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2005-07-08 15:03:37 +0000 |
commit | afd887adaa8de50f0ffd5f2db56478df5a64e57e (patch) | |
tree | b3a2a8844f807d4f34953b79db63490806059356 /Tools | |
parent | 1546bcdea09216724bd48e5fd46b1aceea7c04e2 (diff) | |
download | cpython-afd887adaa8de50f0ffd5f2db56478df5a64e57e.tar.gz |
Handle argref so it can be overridden more easily in a subclass.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/bgen/bgen/bgenObjectDefinition.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py index f0dfc4fc34..da86c75d7f 100644 --- a/Tools/bgen/bgen/bgenObjectDefinition.py +++ b/Tools/bgen/bgen/bgenObjectDefinition.py @@ -6,6 +6,7 @@ class ObjectDefinition(GeneratorGroup): basechain = "NULL" tp_flags = "Py_TPFLAGS_DEFAULT" basetype = None + argref = "" # set to "*" if arg to <type>_New should be pointer def __init__(self, name, prefix, itselftype): """ObjectDefinition constructor. May be extended, but do not override. @@ -22,7 +23,6 @@ class ObjectDefinition(GeneratorGroup): self.itselftype = itselftype self.objecttype = name + 'Object' 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.modulename = None if hasattr(self, "assertions"): |