[issue43737] Documentation of modulo operator should document behaviour clearly when second operator is negative

Raymond Hettinger report at bugs.python.org
Thu Apr 8 15:41:16 EDT 2021


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

I agree with Steven that minor fact should not be given more weight.  It has a specification in the Reference and it own FAQ entry.

IMO it doesn't belong in tutorial because having a negative modulus is rare and because burying the use in details makes the tutorial harder to read.  The intent of the tutorial is to have a structured, example driven, overview of the language.  It necessarily omits uncommon cases and detailed specifications.

Thanks for the suggestion, but I am going to close this one as Steven suggested.

----------
resolution:  -> not a bug
stage: patch review -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list