diff options
author | Raymond Hettinger <python@rcn.com> | 2013-10-01 07:55:43 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-10-01 07:55:43 (GMT) |
commit | 2ff2190b6293966f76633d810dfbe2d232ff5973 (patch) | |
tree | 8eac2140c5decc70779e02017262149039ccd5d3 /Include | |
parent | 21b2933456fc3ce2d1594d704671f4fc298ca37c (diff) | |
download | cpython-2ff2190b6293966f76633d810dfbe2d232ff5973.zip cpython-2ff2190b6293966f76633d810dfbe2d232ff5973.tar.gz cpython-2ff2190b6293966f76633d810dfbe2d232ff5973.tar.bz2 |
Issue #18594: Fix the fast path for collections.Counter().
The path wasn't being taken due to an over-restrictive type check.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 387cadb..20c4780 100644 --- a/Include/object.h +++ b/Include/object.h @@ -482,6 +482,7 @@ PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *, PyObject *, PyObject *); #ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) _PyType_Lookup(PyTypeObject *, PyObject *); +PyAPI_FUNC(PyObject *) _PyType_LookupId(PyTypeObject *, _Py_Identifier *); PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, _Py_Identifier *); PyAPI_FUNC(PyTypeObject *) _PyType_CalculateMetaclass(PyTypeObject *, PyObject *); #endif |