summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-01-26 04:43:29 (GMT)
committerLarry Hastings <larry@hastings.org>2014-01-26 04:43:29 (GMT)
commitc20472640cff9f2cb513b1443897814d0328bea1 (patch)
treee6ad163527b806cc65761d0f720c4202086caf40 /Objects
parent9ad116bcd05cf9b98f544916633641933a0db95c (diff)
downloadcpython-c20472640cff9f2cb513b1443897814d0328bea1.zip
cpython-c20472640cff9f2cb513b1443897814d0328bea1.tar.gz
cpython-c20472640cff9f2cb513b1443897814d0328bea1.tar.bz2
Issue #20390: Small fixes and improvements for Argument Clinic.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c9
-rw-r--r--Objects/unicodeobject.c2
2 files changed, 5 insertions, 6 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 8eff999..2332e3f 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -70,7 +70,7 @@ to the combined-table form.
#include "stringlib/eq.h"
/*[clinic input]
-class dict
+class dict "PyDictObject *" "&PyDict_Type"
[clinic start generated code]*/
/*[clinic end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/
@@ -1694,7 +1694,6 @@ dict_items(PyDictObject *mp)
/*[clinic input]
@classmethod
dict.fromkeys
-
iterable: object
value: object=None
/
@@ -2217,10 +2216,10 @@ PyDoc_STRVAR(dict___contains____doc__,
{"__contains__", (PyCFunction)dict___contains__, METH_O|METH_COEXIST, dict___contains____doc__},
static PyObject *
-dict___contains__(PyObject *self, PyObject *key)
-/*[clinic end generated code: checksum=c4f85a39baac4776c4275ad5f072f7732c5f0806]*/
+dict___contains__(PyDictObject *self, PyObject *key)
+/*[clinic end generated code: checksum=744ca54369dda9815a596304087f1b37fafa5960]*/
{
- register PyDictObject *mp = (PyDictObject *)self;
+ register PyDictObject *mp = self;
Py_hash_t hash;
PyDictKeyEntry *ep;
PyObject **value_addr;
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9acd37f..919b733 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -48,7 +48,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#endif
/*[clinic input]
-class str
+class str "PyUnicodeObject *" "&PyUnicode_Type"
[clinic start generated code]*/
/*[clinic end generated code: checksum=da39a3ee5e6b4b0d3255bfef95601890afd80709]*/