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 /Objects | |
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 'Objects')
-rw-r--r-- | Objects/typeobject.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index a55d977..3dcbc86 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -50,9 +50,6 @@ _Py_IDENTIFIER(__name__); _Py_IDENTIFIER(__new__); static PyObject * -_PyType_LookupId(PyTypeObject *type, struct _Py_Identifier *name); - -static PyObject * slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds); unsigned int @@ -2589,7 +2586,7 @@ _PyType_Lookup(PyTypeObject *type, PyObject *name) return res; } -static PyObject * +PyObject * _PyType_LookupId(PyTypeObject *type, struct _Py_Identifier *name) { PyObject *oname; |