[prev in list] [next in list] [prev in thread] [next in thread]
List: python-bugs-list
Subject: [ python-Bugs-1209411 ] divmod documentation shd reference // not /
From: noreply () sourceforge ! net (SourceForge ! net)
Date: 2005-05-31 11:04:11
Message-ID: E1Dd4Xb-0002JY-Dc () sc8-sf-web4 ! sourceforge ! net
[Download RAW message or body]
Bugs item #1209411, was opened at 2005-05-26 14:47
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1209411&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Alan (aisaac0)
Assigned to: Nobody/Anonymous (nobody)
Summary: divmod documentation shd reference // not /
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-05-31 06:04
Message:
Logged In: YES
user_id=80475
Fixed.
Thanks for the report.
----------------------------------------------------------------------
Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-05-31 05:27
Message:
Logged In: YES
user_id=1188172
Agreed. This should be changed in the documentation before
it becomes wrong in Py3k ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1209411&group_id=5470
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic