Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c332f8a commit fdde79dCopy full SHA for fdde79d
1 file changed
Doc/howto/pyporting.rst
@@ -169,8 +169,9 @@ things:
169
division or continue using ``/`` and expect a float
170
171
The reason that ``/`` isn't simply translated to ``//`` automatically is that if
172
-an object defines its own ``__div__`` method but not ``__floordiv__`` then your
173
-code would begin to fail.
+an object defines a ``__truediv__`` method but not ``__floordiv__`` then your
+code would begin to fail (e.g. a user-defined class that uses ``/`` to
174
+signify some operation but not ``//`` for the same thing or at all).
175
176
Text versus binary data
177
+++++++++++++++++++++++
0 commit comments