diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2005-07-08 15:03:37 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2005-07-08 15:03:37 (GMT) |
commit | 6d394d9b6875a750cc57283a6e205fbdbd0cb5de (patch) | |
tree | 2c5c869b7c94291449ab4fcb8a09bb0a2dc06475 /Tools/bgen | |
parent | fafc1aecccf8eefcd52f9014c771e1f5625a7657 (diff) | |
download | cpython-6d394d9b6875a750cc57283a6e205fbdbd0cb5de.zip cpython-6d394d9b6875a750cc57283a6e205fbdbd0cb5de.tar.gz cpython-6d394d9b6875a750cc57283a6e205fbdbd0cb5de.tar.bz2 |
Handle argref so it can be overridden more easily in a subclass.
Diffstat (limited to 'Tools/bgen')
-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 f0dfc4f..da86c75 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"): |