How to replace an instance method?
Chris Angelico
rosuav at gmail.com
Sat Sep 17 20:30:13 EDT 2022
On Sun, 18 Sept 2022 at 10:29, <avi.e.gross at gmail.com> wrote:
>
>
> From your description, Chris, it sounds like the functional programming
> technique often called currying. A factory function is created where one (or
> more) parameters are sort of frozen in so the user never sees or cares about
> them, and a modified or wrapped function is returned. In this case, the
> function now knows what object it is attached to as this.
>
Correct. I avoided the technical term but that is exactly what's happening.
ChrisA
More information about the Python-list
mailing list