mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Handle argref so it can be overridden more easily in a subclass.
This commit is contained in:
parent
fafc1aeccc
commit
6d394d9b68
1 changed files with 1 additions and 1 deletions
|
|
@ -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 @@ def __init__(self, name, prefix, itselftype):
|
|||
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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue