]> granicus.if.org Git - python/commit
Make sure that PyDict_GetItem[String]() *never* raises an exception.
authorGuido van Rossum <guido@python.org>
Thu, 14 May 1998 01:00:51 +0000 (01:00 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 May 1998 01:00:51 +0000 (01:00 +0000)
commit474b19e2abc71c3ae0afd5e7a11006cf40b9c047
treea8797e14eb0d401e15d9aee0d96066b5f0ff93c1
parent4180cf16499b3e5398e0cd9dc7b027b885a01db3
Make sure that PyDict_GetItem[String]() *never* raises an exception.
If the argument is not a dictionary, simply return NULL.  If the
hash() on the key fails, clear the error.
Objects/dictobject.c