[Python-Dev] Possible patch for functools partial (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Fri May 7 17:02:14 CEST 2010


VanL <van.lindberg gmail.com> writes:

I created a subclass of functools.partial that provides appropriate eq and hash methods, so that this works as expected. I called the subclass a Job: [...] While I was at it, I also added a nice repr. Would this group be interested in a patch, or is this not interesting?

It would be more useful to provide equality, hashing and repr to partial itself, rather than a subclass. Feel free to propose a patch :)

Regards

Antoine.



More information about the Python-Dev mailing list