mirror of
https://github.com/python/cpython.git
synced 2025-01-19 06:54:52 +08:00
Clarify that the strip changes also apply to Unicode.
This commit is contained in:
parent
7dab2426ca
commit
26dd830123
@ -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…
Reference in New Issue
Block a user