On Sun, Mar 22, 2020 at 10:08 AM Chris Angelico <ros...@gmail.com> wrote:

> > I imagine that the count=1 is the most common use case for replace()
> anyway,
> >
>
> Do you mean "other than not specifying the count",


yes, that -- most common use case for using count at all.

I'm suggesting that if -1 and 1 were the only options, very few people
would notice :-)


>  Because in my
> experience, replacing all is *by far* the most common case


Agreed -- that's why it's a good default.  I don't know that I ever even
noticed that count was there before now :-)

-CHB

-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/56T5CESUIYJIN67JJ25LGMIUJGH2GT6Z/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to