[issue35853] Extend the functools module with more higher order function combinators

2019-02-01 Thread Tobias Pleyer
Tobias Pleyer added the comment: Thank you for your quick and detailed answer. It appears I slightly misunderstood the purpose of the functools module. However kudos for your great effort to push the Python language forward. Best regards Tobias --

[issue35853] Extend the functools module with more higher order function combinators

2019-01-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe each of these has been discussed and individually rejected before. They don't apply as neatly to Python as one would hope. Identity is usually inefficient in Python and we use a func=None as a substitute. Identity also had issues with

[issue35853] Extend the functools module with more higher order function combinators

2019-01-29 Thread Tobias Pleyer
Change by Tobias Pleyer : -- keywords: +patch pull_requests: +11546 stage: -> patch review ___ Python tracker ___ ___

[issue35853] Extend the functools module with more higher order function combinators

2019-01-29 Thread Tobias Pleyer
New submission from Tobias Pleyer : The partial function is a typical example of a higher order function: It takes a function as argument and returns a function. As the name of the functools module suggests its purpose is to provide tools for working with functions. This should, in my