mirror of
https://github.com/python/cpython.git
synced 2024-12-02 06:14:49 +08:00
News for strip methods.
This commit is contained in:
parent
018b0eb0f5
commit
4904204158
@ -6,6 +6,10 @@ Type/class unification and new-style classes
|
|||||||
|
|
||||||
Core and builtins
|
Core and builtins
|
||||||
|
|
||||||
|
- String 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
|
- Added a new dict method pop(key). This removes and returns the
|
||||||
value corresponding to key. [SF patch #539949]
|
value corresponding to key. [SF patch #539949]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user