Commit 2e82e717 authored by Guido van Rossum's avatar Guido van Rossum

Changed the extended slice example to show that you can reverse a

string with a [::-1] slice.
parent e9996c60
......@@ -10,8 +10,8 @@ Core and builtins
finally clause. [SF bug 567538]
- Most builtin sequences now support "extended slices", i.e. slices
with a third "stride" parameter. For example, "range(10)[1:6:2]"
evaluates to [1, 3, 5].
with a third "stride" parameter. For example, "hello world"[::-1]
gives "dlrow olleh".
- Cycles going through the __class__ link of a new-style instance are
now detected by the garbage collector.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment