Python Hackery: merging signatures of two Python functions

from blog Chris Warrick (Blog), | ↗ original
Today’s blog post is going to contain fairly advanced Python hackery. We’ll take two functions — one is a wrapper for the other, but also adds some positional arguments. And we’ll change the signature displayed everywhere from the uninformative f(new_arg, *args, **kwargs) to something more appropriate. This blog post was inspired by F4D3C0D3 on...