Python inner function parameter shadowed

Chris Angelico rosuav at gmail.com
Tue Sep 13 14:31:57 EDT 2016


On Wed, Sep 14, 2016 at 4:28 AM, Brendan Abel <007brendan at gmail.com> wrote:
> This looks like a decorator function that optionally accepts arguments to
> change the behavior.

Oh, I get it. So, yeah, it is one function doing two jobs -
legitimately. In that case, I'd just rename one of the 'func'
arguments - probably the inner one, since that's never going to be
passed as a keyword.

ChrisA



More information about the Python-list mailing list