You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
collections.UserString.replace() rejects the count keyword #161970
Since 3.13, str.replace() accepts count as a keyword argument (gh-106487), and 3.15 did the same for bytes.replace() (gh-147856). collections.UserString.replace() names that parameter maxsplit instead, so the keyword form that works on str raises TypeError on a UserString. It looks like the name was copied from split() a long time ago.
Activity
pythongh-161970: Deprecate UserString.replace() maxsplit keyword inst…