Efficient Wrappers for Instance Methods

Sven R. Kunze srkunze at mail.de
Wed Feb 3 15:55:28 EST 2016


On 03.02.2016 21:40, Bernardo Sulzbach wrote:
> I am not entirely sure about what your question is.
>
> Are you talking about the "heapreplace expected 2 arguments, got 1"
> you get if you set replace = heapreplace?

Yes, I think so.

I might ask differently: why do I need to write wrapper method when the 
function I am wrapping actually already has the same signature?


Best,
Sven



More information about the Python-list mailing list