[Python-ideas] Re: Add __name__ to functools.partial object

2022-08-31 Thread Steven D'Aprano
On Tue, Aug 30, 2022 at 03:28:06PM -0400, Wes Turner wrote: > - Copying __qual/name__ would definitely be a performance regression Doubtful that it would be meaningful. It's just a lookup and assignment. >From the perspective of the partial object, it's just self.__name__ = func.__name__ (

[Python-ideas] Re: Add __name__ to functools.partial object

2022-08-31 Thread Steven D'Aprano
On Mon, Aug 29, 2022 at 09:31:25PM -0700, Charles Machalow wrote: > Hey folks, > > I propose adding __name__ to functools.partial. https://github.com/python/cpython/issues/91002 ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe se