[Python-checkins] r76733 - python/trunk/Objects/abstract.c
Brett Cannon
brett at python.org
Thu Dec 10 06:26:10 CET 2009
Why the change? This tie into abc stuff somehow?
On Wed, Dec 9, 2009 at 19:38, benjamin.peterson
<python-checkins at python.org>wrote:
> Author: benjamin.peterson
> Date: Thu Dec 10 04:37:59 2009
> New Revision: 76733
>
> Log:
> substitute PyDict_Check() for PyObject_IsInstance
>
> Modified:
> python/trunk/Objects/abstract.c
>
> Modified: python/trunk/Objects/abstract.c
>
> ==============================================================================
> --- python/trunk/Objects/abstract.c (original)
> +++ python/trunk/Objects/abstract.c Thu Dec 10 04:37:59 2009
> @@ -1810,7 +1810,7 @@
> {
> if (s && PyInstance_Check(s))
> return PyObject_HasAttrString(s, "__getitem__");
> - if (PyObject_IsInstance(s, (PyObject *)&PyDict_Type))
> + if (PyDict_Check(s))
> return 0;
> return s != NULL && s->ob_type->tp_as_sequence &&
> s->ob_type->tp_as_sequence->sq_item != NULL;
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-checkins/attachments/20091209/50ff0dd0/attachment-0001.htm>
More information about the Python-checkins
mailing list