Issue 28062: Streamline repr(partial object) (original) (raw)
This is a followup to #27137, where it was found out the repr of a partial object includes the module (i.e. 'functools') only if it's not a subclass. This behaviour is surprising at best. Attached patch streamlines the reprs of partial objects to always include the module.
Raymond, do you remember why this approach was taken? Looking at the code, it seems it was just the easiest way to go about it.
Side-note: I couldn't run the test suite since I ran into #28061, so I just did manual testing.