diff options
author | Victor Stinner <vstinner@python.org> | 2020-02-04 13:42:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 13:42:13 +0100 |
commit | 850a4bd839ca11b59439e21dda2a3ebe917a9a16 (patch) | |
tree | 263a0e0494eefce7448ea60c42aa86c30e1b644d /Python/dynload_win.c | |
parent | 4590f72259ecbcea66e12a28af14d867255d2e66 (diff) | |
download | cpython-git-850a4bd839ca11b59439e21dda2a3ebe917a9a16.tar.gz |
Restore PyObject_IsInstance() comment (GH-18345)
Restore PyObject_IsInstance() comment explaining why only tuples of
types are accepted, but not general sequence. Comment written by
Guido van Rossum in commit 03290ecbf1661c0192e6abdbe00ae163af461d77
which implements isinstance(x, (A, B, ...)). The comment was lost in
a PyObject_IsInstance() optimization:
commit ec569b794737be248671d0dfac11b664fc930eef.
Cleanup also the code. recursive_isinstance() is no longer recursive,
so rename it to object_isinstance(), whereas object_isinstance() is
recursive and so rename it to object_recursive_isinstance().
Diffstat (limited to 'Python/dynload_win.c')
0 files changed, 0 insertions, 0 deletions