mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
#18803: merge with 3.3.
This commit is contained in:
commit
d640fe2af5
17 changed files with 20 additions and 20 deletions
|
|
@ -1294,7 +1294,7 @@ def _get_big_s(STR):
|
|||
raise AssertionError
|
||||
|
||||
# The older replace implementation counted all matches in
|
||||
# the string even when it only neeed to make one replacement.
|
||||
# the string even when it only needed to make one replacement.
|
||||
@bench('("A" + ("Z"*128*1024)).replace("A", "BB", 1)',
|
||||
'quick replace single character match', 10)
|
||||
def quick_replace_single_match(STR):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue