[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


New submission from Calo :

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@python
components: Documentation
messages: 400279
nosy: docs@python, objectivitix
priority: normal
severity: normal
status: open
title: Documentation wrote __div__ instead of __truediv__
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue45003>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


Calo  added the comment:

I'd like to! Wait, so is this approved now? I'd simply need to open a PR? If 
so, on which repository do I do it?

--

___
Python tracker 
<https://bugs.python.org/issue45003>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


Calo  added the comment:

Got it, thank you very much! I found 
https://github.com/python/cpython/blob/main/Doc/reference/expressions.rst, I 
guess that's where I fork and edit

--

___
Python tracker 
<https://bugs.python.org/issue45003>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45003] Documentation wrote __div__ instead of __truediv__

2021-08-25 Thread Calo


Change by Calo :


--
keywords: +patch
pull_requests: +26398
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27951

___
Python tracker 
<https://bugs.python.org/issue45003>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com