mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
News for strip methods.
This commit is contained in:
parent
018b0eb0f5
commit
4904204158
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@ Type/class unification and new-style classes
|
|||
|
||||
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
|
||||
value corresponding to key. [SF patch #539949]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue