This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: divmod documentation shd reference // not /
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: aisaac0, georg.brandl, rhettinger
Priority: normal Keywords:

Created on 2005-05-26 19:47 by aisaac0, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg25418 - (view) Author: Alan (aisaac0) Date: 2005-05-26 19:47
At http://docs.python.org/lib/typesnumeric.html we find:
divmod(x, y)  the pair (x / y, x % y)  (3)(4)

This should be:
divmod(x, y)  the pair (x // y, x % y)  (3)(4)

At
http://docs.python.org/lib/built-in-funcs.html#built-in-funcs
we find:
divmod(  a, b)
    .... For plain and long integers, the result is the
same as (a / b, a % b).

This should be:
    .... For plain and long integers, the result is the
same as (a // b, a % b).

Alternatively there could be a reference to 
"from __future__ import division"
but the proposed change is cleaner and will last.

msg25419 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-05-31 10:27
Logged In: YES 
user_id=1188172

Agreed. This should be changed in the documentation before
it becomes wrong in Py3k ;)
msg25420 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-05-31 11:04
Logged In: YES 
user_id=80475

Fixed.
Thanks for the report.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42016
2005-05-26 19:47:26aisaac0create