Nick Coghlan added the comment:

Updated patch based on Alon's last patch.

The major functional change is to ensure __self__ is set appropriately on any 
bound methods returned by the descriptor.

I also updated the docs and docstring, and added a What's New entry (as well as 
rewording the existing entry for functools.singledispatch)

There were a few other cosmetic changes, with the most noticeable being moving 
the partialmethod implementation and tests adjacent to the existing ones for 
functools.partial.

Assuming nobody pokes any significant holes in this idea and implementation in 
the meantime, I'll commit this before beta 1.

----------
Added file: http://bugs.python.org/file32436/issue4331_partialmethod.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4331>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to