Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
The repr ofpartialmethod object contains redundant commas and spaces. Compare it with the repr ofpartial:
>>>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)