[New-bugs-announce] [issue45003] Documentation wrote __div__ instead of __truediv__

Calo report at bugs.python.org
Wed Aug 25 14:09:04 EDT 2021


New submission from Calo <itsallobjects at gmail.com>:

The Python Language Reference, Chapter 6 (Expressions), Section 7 (Binary arithmetic operations) in Python version 3.9 has a sentence which reads:

"This operation can be customized using the special __div__() and __floordiv__() methods."

To my knowledge, when Python 3 was released, true division became the default, and __div__ became useless as well. Thus, I believe this part of the documentation should be changed to "[...] __truediv__() and __floordiv__() methods." to avoid misleading others.

P.S. This is my first time submitting a Python bug report, I'm just a Python enthusiast and I'm not familiar at all with these official bug reports (I have read https://docs.python.org/3/bugs.html though!), so please let me know and correct me if I've done something incorrectly! Thanks!

----------
assignee: docs at python
components: Documentation
messages: 400279
nosy: docs at python, objectivitix
priority: normal
severity: normal
status: open
title: Documentation wrote __div__ instead of __truediv__
versions: Python 3.9

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


More information about the New-bugs-announce mailing list