From 2ff2190b6293966f76633d810dfbe2d232ff5973 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 1 Oct 2013 00:55:43 -0700 Subject: Issue #18594: Fix the fast path for collections.Counter(). The path wasn't being taken due to an over-restrictive type check. --- Include/object.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/object.h') diff --git a/Include/object.h b/Include/object.h index 387cadb4e4..20c4780e0c 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 -- cgit v1.2.1