mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Changed the extended slice example to show that you can reverse a
string with a [::-1] slice.
This commit is contained in:
parent
e9996c6093
commit
2e82e717e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue