-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
The repr of partialmethod
object contains redundant commas and spaces. Compare it with the repr of partial
:
>>> import functools
>>> def test(*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)
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error