mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
backport gvanrossum's patch:
Add news about deprecated complex ops. Original patches were: python/dist/src/Misc/NEWS:1.387
This commit is contained in:
@@ -8,6 +8,10 @@ Core and builtins
|
||||
great many cyclic structures involving frames. Reported on
|
||||
SourceForge as bug 543148.
|
||||
|
||||
- Complex numbers supported divmod() and the // and % operators, but
|
||||
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". In addition, "200L".strip("L")
|
||||
|
||||
Reference in New Issue
Block a user