Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
afd887ad
Commit
afd887ad
authored
Jul 08, 2005
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle argref so it can be overridden more easily in a subclass.
parent
1546bcde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Tools/bgen/bgen/bgenObjectDefinition.py
Tools/bgen/bgen/bgenObjectDefinition.py
+1
-1
No files found.
Tools/bgen/bgen/bgenObjectDefinition.py
View file @
afd887ad
...
@@ -6,6 +6,7 @@ class ObjectDefinition(GeneratorGroup):
...
@@ -6,6 +6,7 @@ class ObjectDefinition(GeneratorGroup):
basechain
=
"NULL"
basechain
=
"NULL"
tp_flags
=
"Py_TPFLAGS_DEFAULT"
tp_flags
=
"Py_TPFLAGS_DEFAULT"
basetype
=
None
basetype
=
None
argref
=
""
# set to "*" if arg to <type>_New should be pointer
def
__init__
(
self
,
name
,
prefix
,
itselftype
):
def
__init__
(
self
,
name
,
prefix
,
itselftype
):
"""ObjectDefinition constructor. May be extended, but do not override.
"""ObjectDefinition constructor. May be extended, but do not override.
...
@@ -22,7 +23,6 @@ class ObjectDefinition(GeneratorGroup):
...
@@ -22,7 +23,6 @@ class ObjectDefinition(GeneratorGroup):
self
.
itselftype
=
itselftype
self
.
itselftype
=
itselftype
self
.
objecttype
=
name
+
'Object'
self
.
objecttype
=
name
+
'Object'
self
.
typename
=
name
+
'_Type'
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
.
static
=
"static "
# set to "" to make <type>_New and <type>_Convert public
self
.
modulename
=
None
self
.
modulename
=
None
if
hasattr
(
self
,
"assertions"
):
if
hasattr
(
self
,
"assertions"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment