diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-30 10:03:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 10:03:53 (GMT) |
commit | 865c3b257fe38154a4320c7ee6afb416f665b9c2 (patch) | |
tree | ab97967500a250cac15ac0d69aeb2c061bf313ba /Misc/NEWS.d/next | |
parent | 25fc088607c855060ed142296dc1bd0125fad1af (diff) | |
download | cpython-865c3b257fe38154a4320c7ee6afb416f665b9c2.zip cpython-865c3b257fe38154a4320c7ee6afb416f665b9c2.tar.gz cpython-865c3b257fe38154a4320c7ee6afb416f665b9c2.tar.bz2 |
bpo-28029: Make "".replace("", s, n) returning s for any n != 0. (GH-16981)
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-10-29-09-38-54.bpo-28029.AmRMEF.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-10-29-09-38-54.bpo-28029.AmRMEF.rst b/Misc/NEWS.d/next/Core and Builtins/2019-10-29-09-38-54.bpo-28029.AmRMEF.rst new file mode 100644 index 0000000..420e53a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-10-29-09-38-54.bpo-28029.AmRMEF.rst @@ -0,0 +1,3 @@ +``"".replace("", s, n)`` now returns ``s`` instead of an empty string for +all non-zero ``n``. There are similar changes for :class:`bytes` and +:class:`bytearray` objects. |