diff options
author | Raymond Hettinger <python@rcn.com> | 2004-09-19 06:00:15 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-09-19 06:00:15 (GMT) |
commit | 1be1a79ff996cda1c5f780d2409406d6ba88b36d (patch) | |
tree | 017ef092f9c0fcccac92febeac2019b39bc03cff /Modules | |
parent | 8b4e886ed9274c77d1895f1b1d61f8e60a2b3463 (diff) | |
download | cpython-1be1a79ff996cda1c5f780d2409406d6ba88b36d.zip cpython-1be1a79ff996cda1c5f780d2409406d6ba88b36d.tar.gz cpython-1be1a79ff996cda1c5f780d2409406d6ba88b36d.tar.bz2 |
SF bug #1030557: PyMapping_Check crashes when argument is NULL
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.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions