summaryrefslogtreecommitdiffstats
path: root/Modules/_dbmmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-01-07 20:41:53 (GMT)
committerLarry Hastings <larry@hastings.org>2014-01-07 20:41:53 (GMT)
commit61272b77b0792318105bbdb6887a029b6a1743da (patch)
treec7842926f7938056074e083347c03ebb244650cf /Modules/_dbmmodule.c
parent9026113fd4acbb2fb77a900ae7bd921eebcc29c4 (diff)
downloadcpython-61272b77b0792318105bbdb6887a029b6a1743da.zip
cpython-61272b77b0792318105bbdb6887a029b6a1743da.tar.gz
cpython-61272b77b0792318105bbdb6887a029b6a1743da.tar.bz2
Issue #19273: The marker comments Argument Clinic uses have been changed
to improve readability.
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r--Modules/_dbmmodule.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c
index f9a0e5e..c9e16e3 100644
--- a/Modules/_dbmmodule.c
+++ b/Modules/_dbmmodule.c
@@ -28,11 +28,11 @@ static char *which_dbm = "Berkeley DB";
#error "No ndbm.h available!"
#endif
-/*[clinic]
+/*[clinic input]
module dbm
class dbm.dbm
-[clinic]*/
-/*[clinic checksum: da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
+[clinic start generated code]*/
+/*[clinic end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
typedef struct {
PyObject_HEAD
@@ -49,13 +49,13 @@ static PyTypeObject Dbmtype;
static PyObject *DbmError;
-/*[python]
+/*[python input]
class dbmobject_converter(self_converter):
type = "dbmobject *"
def converter_init(self):
self.name = 'dp'
-[python]*/
-/*[python checksum: da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
+[python start generated code]*/
+/*[python end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
static PyObject *
newdbmobject(const char *file, int flags, int mode)
@@ -263,7 +263,7 @@ static PySequenceMethods dbm_as_sequence = {
0, /* sq_inplace_repeat */
};
-/*[clinic]
+/*[clinic input]
dbm.dbm.get
@@ -276,7 +276,7 @@ dbm.dbm.get
/
Return the value for key if present, otherwise default.
-[clinic]*/
+[clinic start generated code]*/
PyDoc_STRVAR(dbm_dbm_get__doc__,
"get(key, [default])\n"
@@ -318,7 +318,7 @@ dbm_dbm_get(PyObject *self, PyObject *args)
static PyObject *
dbm_dbm_get_impl(dbmobject *dp, const char *key, Py_ssize_clean_t key_length, int group_right_1, PyObject *default_value)
-/*[clinic checksum: 28cf8928811bde51e535d67ae98ea039d79df717]*/
+/*[clinic end generated code: checksum=28cf8928811bde51e535d67ae98ea039d79df717]*/
{
datum dbm_key, val;
@@ -440,7 +440,7 @@ static PyTypeObject Dbmtype = {
/* ----------------------------------------------------------------- */
-/*[clinic]
+/*[clinic input]
dbm.open as dbmopen
@@ -458,7 +458,7 @@ dbm.open as dbmopen
Return a database object.
-[clinic]*/
+[clinic start generated code]*/
PyDoc_STRVAR(dbmopen__doc__,
"open(filename, flags=\'r\', mode=0o666)\n"
@@ -498,7 +498,7 @@ exit:
static PyObject *
dbmopen_impl(PyModuleDef *module, const char *filename, const char *flags, int mode)
-/*[clinic checksum: fb265f75641553ccd963f84c143b35c11f9121fc]*/
+/*[clinic end generated code: checksum=fb265f75641553ccd963f84c143b35c11f9121fc]*/
{
int iflags;