Re: [Python-ideas] Boolean ABC similar to what's provided in the 'numbers' module

2018-02-13 Thread Chris Barker
On Mon, Feb 12, 2018 at 10:07 PM, David Mertz wrote: > I'm not sure I'm convinced by Sylvain that Boolean needs to be an ABC in > the standard library; Guido expresses skepticism. Of course it is possible > to define it in some other library that actually needs to use > `isinstance(x, Boolean)`

Re: [Python-ideas] Complicate str methods

2018-02-13 Thread Michel Desmoulin
Le 03/02/2018 à 23:04, Franklin? Lee a écrit : > Let s be a str. I propose to allow these existing str methods to take > params in new forms. > > s.replace(old, new): >     Allow passing in a collection of olds. >     Allow passing in a single argument, a mapping of olds to news. >     Allow the