A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-May/099983.html below:

[Python-Dev] Possible patch for functools partial

[Python-Dev] Possible patch for functools partial - Interested? [Python-Dev] Possible patch for functools partial - Interested?Antoine Pitrou solipsis at pitrou.net
Fri May 7 17:02:14 CEST 2010
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.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4