[issue34676] Guarantie that divmod() and PyNumber_Divmod() return a 2-tuple

Raymond Hettinger report at bugs.python.org
Fri Sep 14 12:58:44 EDT 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

-0 Perhaps this should be left as-is.  There is no known problem that we would be solving and it would add an extra step to a fine-grained function.  In general, I think we have these guards in places where it is known that downstream callers rely on a particular type signature for the return value.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34676>
_______________________________________


More information about the Python-bugs-list mailing list