You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The repr of partialmethod object contains redundant commas and spaces. Compare it with the repr of partial:
>>> import functools
>>> deftest(*args, **kwargs): pass
...
>>> functools.partial(test)
functools.partial(<function test at 0x7fcbe91819d0>)
>>> functools.partial(test, a=1)
functools.partial(<function test at 0x7fcbe91819d0>, a=1)
>>> functools.partialmethod(test)
functools.partialmethod(<function test at 0x7fcbe91819d0>, , )
>>> functools.partialmethod(test, a=1)
functools.partialmethod(<function test at 0x7fcbe91819d0>, , a=1)
Activity
picnixz commentedon Jun 26, 2024
I'll take this one if possible!
gh-121025: Improve partialmethod.__repr__ (GH-121033)
pythongh-121025: Improve partialmethod.__repr__ (pythonGH-121033)
pythongh-121025: Improve partialmethod.__repr__ (pythonGH-121033)
[3.12] gh-121025: Improve partialmethod.__repr__ (GH-121033) (GH-121038)
[3.13] gh-121025: Improve partialmethod.__repr__ (GH-121033) (#121037)
pythongh-121025: Improve partialmethod.__repr__ (pythonGH-121033)
pythongh-121025: Improve partialmethod.__repr__ (pythonGH-121033)
pythongh-121025: Improve partialmethod.__repr__ (pythonGH-121033)