mirror of
https://github.com/python/cpython.git
synced 2026-05-22 12:24:30 -04:00
1be1a79ff9
Make PySequence_Check() and PyMapping_Check() handle NULL inputs. This goes beyond what most of the other checks do, but it is nice defensive programming and solves the OP's problem.