Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: Note that many other PySequence_* functions support only sequences. For example PySequence_Count(o1, o2) is the equivalent of the Python expression o1 + o2 only if o1 is a sequence. If pass integer objects to PySequence_Count() it will return an error.
I would remove "do not" from the documentation. Or even the whole "For objects that do not provide sequence protocol" since this is implied. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32500> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com