Issue 3794: div still documented in Python 3 (original) (raw)
The "special method names" section of the Python 3.0 documentation still mentions the div method. I believe this method has been totally removed in Python 3 in favour of truediv. (Perhaps I am mistaken, but 'int' object has no attribute 'div', so I assume this is correct).
Note here: http://docs.python.org/dev/3.0/reference/datamodel.html#object.div
div is still documented. Most of the div/truediv section describes the issues distinguishing the two. Now that div is gone, surely there is no need for this section, and truediv can just be pushed up above with all the other operators?
Attached a patch doing that. Also deleted rdiv and idiv from the
following sections. (And one minor extra fix: added //
to the list
of operators in reflected methods, since it was missing - note this
required a reflow of text, which is why the diff shows the whole
paragraph changing).
Change log:
Doc/reference/datamodel.rst: Removed section under "emulating numeric types" about difference between div and truediv, since div has been removed from the language. Also deleted rdiv and idiv from the following sections, also removed.