mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Merge with 3.4 for porting HOWTO tweaks
This commit is contained in:
commit
b44ed82b81
1 changed files with 3 additions and 2 deletions
|
|
@ -169,8 +169,9 @@ things:
|
||||||
division or continue using ``/`` and expect a float
|
division or continue using ``/`` and expect a float
|
||||||
|
|
||||||
The reason that ``/`` isn't simply translated to ``//`` automatically is that if
|
The reason that ``/`` isn't simply translated to ``//`` automatically is that if
|
||||||
an object defines its own ``__div__`` method but not ``__floordiv__`` then your
|
an object defines a ``__truediv__`` method but not ``__floordiv__`` then your
|
||||||
code would begin to fail.
|
code would begin to fail (e.g. a user-defined class that uses ``/`` to
|
||||||
|
signify some operation but not ``//`` for the same thing or at all).
|
||||||
|
|
||||||
Text versus binary data
|
Text versus binary data
|
||||||
+++++++++++++++++++++++
|
+++++++++++++++++++++++
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue