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
c9713874
Commit
c9713874
authored
Jan 24, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the doc strings to refer to PyArg_Parse and Py_BuildValue in stead
of getargs() and mkvalue().
parent
8bb5ad2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Tools/bgen/bgen/bgenType.py
Tools/bgen/bgen/bgenType.py
+7
-4
No files found.
Tools/bgen/bgen/bgenType.py
View file @
c9713874
...
...
@@ -30,14 +30,15 @@ class Type:
return
self
.
getargsFormat
(),
self
.
getargsArgs
()
def
getargsFormat
(
self
):
"""Return the format for this type for use with
[new]getargs
().
"""Return the format for this type for use with
PyArg_Parse
().
Example: int.getargsFormat() returns the string "i".
(getargs is a very old name for PyArg_Parse, hence the name of this method).
"""
return
self
.
fmt
def
getargsArgs
(
self
,
name
):
"""Return an argument for use with
[new]getargs
().
"""Return an argument for use with
PyArg_Parse
().
Example: int.getargsArgs("spam") returns the string "&spam".
"""
...
...
@@ -79,15 +80,17 @@ class Type:
return
self
.
mkvalueFormat
(),
self
.
mkvalueArgs
()
def
mkvalueFormat
(
self
):
"""Return the format for this type for use with
mkv
alue().
"""Return the format for this type for use with
Py_BuildV
alue().
This is normally the same as getargsFormat() but it is
a separate function to allow future divergence.
(mkvalue is a very old name for Py_BuildValue, hence the name of this
method).
"""
return
self
.
getargsFormat
()
def
mkvalueArgs
(
self
,
name
):
"""Return an argument for use with
mkv
alue().
"""Return an argument for use with
Py_BuildV
alue().
Example: int.mkvalueArgs("spam") returns the string "spam".
"""
...
...
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