[docs] [issue32500] PySequence_Length() raises TypeError on dict type
Michał Górny
report at bugs.python.org
Sat Jan 6 15:48:46 EST 2018
Michał Górny <mgorny at gentoo.org> added the comment:
Well, my two main concerns are:
1) whether it is acceptable for PyPy to not raise TypeError in this case, or if I should report it to PyPy upstream as a bug,
2) and whether programmers can appropriately rely on PySequence_Length() raising TypeError for non-sequence types or if they should use e.g. PySequence_Check() explicitly.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32500>
_______________________________________
More information about the docs
mailing list