VanL <van.lindberg <at> 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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com