diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-04-11 16:27:31 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2017-04-11 16:29:51 +0200 |
| commit | 3f20662b3ef287f2eb281b08da3993c25026841d (patch) | |
| tree | a7dbd36fa5d0e068255aa3577da0abde0cca8b99 /doc | |
| parent | 515ac8e2ae293e4cb21ca3f237dd136793d0caff (diff) | |
[#8530] convert deprecated operators
* `<>` was removed and should be replaced by
`!=` (lib2to3.fixes.fix_ne)
* `\`` was removed and should be replaced by either `repr()` or the
`%r` format string modifier (lib2to3.fixes.fix_repr followed by
hand-rolled edition to replace concatenation)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/python3.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/python3.rst b/doc/python3.rst index a0db3381a57..55047f16d4b 100644 --- a/doc/python3.rst +++ b/doc/python3.rst @@ -86,3 +86,15 @@ or:: This form was implemented in Python 2.5 and is thus compatible across the board. + +Removed Operators +----------------- + +.. important:: + + * The backtick operator ``\`foo\``` must be converted to an explicit call + to the ``repr()`` builtin + * The ``<>`` operator must be replaced by ``!=`` + +These two operators were long recommended against/deprecated in Python 2, +Python 3 removed them from the language. |
