mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Clarify that the strip changes also apply to Unicode.
This commit is contained in:
parent
7dab2426ca
commit
26dd830123
1 changed files with 3 additions and 3 deletions
|
|
@ -22,9 +22,9 @@ Core and builtins
|
|||
these make no sense. Since this was documented, they're being
|
||||
deprecated now.
|
||||
|
||||
- String methods lstrip(), rstrip() and strip() now take an optional
|
||||
argument that specifies the characters to strip. For example,
|
||||
"Foo!!!?!?!?".rstrip("?!") -> "Foo".
|
||||
- String and unicode methods lstrip(), rstrip() and strip() now take
|
||||
an optional argument that specifies the characters to strip. For
|
||||
example, "Foo!!!?!?!?".rstrip("?!") -> "Foo".
|
||||
|
||||
- Added a new dict method pop(key). This removes and returns the
|
||||
value corresponding to key. [SF patch #539949]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue