From 3f20662b3ef287f2eb281b08da3993c25026841d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 11 Apr 2017 16:27:31 +0200 Subject: [#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) --- doc/python3.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/python3.rst') 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. -- cgit v1.2.3