Doc: Do not suggest `s[::-1]` for reversed order (GH-22457)
(cherry picked from commit fb2e94692e3a8eb66915575f4a122d56fe8999a0)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 1d11559..8df62c5 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -1116,7 +1116,7 @@
How do I iterate over a sequence in reverse order?
--------------------------------------------------
-Use the :func:`reversed` built-in function, which is new in Python 2.4::
+Use the :func:`reversed` built-in function::
for x in reversed(sequence):
... # do something with x ...
@@ -1124,11 +1124,6 @@
This won't touch your original sequence, but build a new copy with reversed
order to iterate over.
-With Python 2.3, you can use an extended slice syntax::
-
- for x in sequence[::-1]:
- ... # do something with x ...
-
How do you remove duplicates from a list?
-----------------------------------------