[Python-ideas] Re: Enhancing iterator objects with map, filter, reduce methods

2021-12-07 Thread Matsuoka Takuo
On Wed, 1 Dec 2021 at 19:38, Abdulla Al Kathiri wrote: > > number = text -> re.search(pattern1, _) > -> re.search(pattern2, _.group(0)) > -> re.search(pattern3, _.group(1)) > -> float(_.group(0)) > > Yeah that can look ugly I agree (here intentionally the placeholder is > overused).

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2021-12-07 Thread Stephen J. Turnbull
Rob Cliffe via Python-ideas writes: > I think you're making my point. *shrug* You wrote "object", I took you at your word. > You're saying that the object part isn't that hard, but other parts of > it are. For values of "hard" == "non-trivial but mostly bikeshedding". I don't think it will

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2021-12-07 Thread Rob Cliffe via Python-ideas
On 07/12/2021 18:22, Stephen J. Turnbull wrote: Rob Cliffe via Python-ideas writes: > I think you're making my point. *shrug* You wrote "object", I took you at your word. > You're saying that the object part isn't that hard, but other parts of > it are. For values of "hard" == "non-tr

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2021-12-07 Thread Steven D'Aprano
On Tue, Dec 07, 2021 at 06:42:18PM +, Rob Cliffe via Python-ideas wrote: [The other Stephen] > >That's a strawman. The argument is not "Your proposal is good, but > >not perfect, so we reject it." > > That IMO is exactly the argument.  It's like saying "I won't buy a car > today because in 1

[Python-ideas] inline Python functions and methods

2021-12-07 Thread TobiasHT
The Python community has a 5 year plan to push the limit of speed in Python. One of the things that reduces Python execution speed is calling methods or functions that are not in the nearest scope. My suggestion is to introduce inline functions just as they are in C. They can be defined as glob