Serhiy Storchaka added the comment: Please open a PR for review.
Checking PyTuple_Check() is needed if this code is used in startswith() and endswith(). "integer argument or None expected" -- I'm not sure this wording is correct enough. What wording is used in other similar code? I'm sure there other functions that accept int or None. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29730> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com