summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-24 09:23:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-24 09:23:13 (GMT)
commitc9713874ba26f6a1cf351c0d54d0279e4174848b (patch)
tree7c5ebca98a80a309517536245c0e564a71220e2e /Tools/bgen
parent8bb5ad2e566102e7319f6d5b8eac3347c64261cf (diff)
downloadcpython-c9713874ba26f6a1cf351c0d54d0279e4174848b.zip
cpython-c9713874ba26f6a1cf351c0d54d0279e4174848b.tar.gz
cpython-c9713874ba26f6a1cf351c0d54d0279e4174848b.tar.bz2
Updated the doc strings to refer to PyArg_Parse and Py_BuildValue in stead
of getargs() and mkvalue().
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/bgenType.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py
index 8ac3ac3..aa87aee 100644
--- a/Tools/bgen/bgen/bgenType.py
+++ b/Tools/bgen/bgen/bgenType.py
@@ -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 mkvalue().
+ """Return the format for this type for use with Py_BuildValue().
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 mkvalue().
+ """Return an argument for use with Py_BuildValue().
Example: int.mkvalueArgs("spam") returns the string "spam".
"""