[Python-checkins] bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951)

serhiy-storchaka webhook-mailer at python.org
Thu Aug 26 01:49:11 EDT 2021


https://github.com/python/cpython/commit/806e25fd3173a80021e6df87b81263b5f6056f38
commit: 806e25fd3173a80021e6df87b81263b5f6056f38
branch: main
author: Objectivitix <79152594+Objectivitix at users.noreply.github.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-08-26T08:49:02+03:00
summary:

bpo-45003: Change __div__ to __truediv__ in py3 language reference. (GH-27951)

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index b1b32dfba26e5..d70fcb34d2168 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1256,7 +1256,7 @@ integer; the result is that of mathematical division with the 'floor' function
 applied to the result.  Division by zero raises the :exc:`ZeroDivisionError`
 exception.
 
-This operation can be customized using the special :meth:`__div__` and
+This operation can be customized using the special :meth:`__truediv__` and
 :meth:`__floordiv__` methods.
 
 .. index::



More information about the Python-checkins mailing list