Author gasokiw
Recipients gasokiw
Date 2018-05-15.20:56:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526417770.88.0.682650639539.issue33527@psf.upfronthosting.co.za>
In-reply-to
Content
When you try to reassign variable with same name as one of parameters/arguments of parent function to local scope in child function, even if it doesn't actually get ran, the argument/parameter is not passed to child function anymore. 
In practice this happens when you make decorator with arguments/parameters and make wrapper function inside it.

As workaround you can redeclare those arguments/parameters in new variables in parent function then rewrite them back in child function. ( as seen in child_function_scope_bodge.py )

Please view attachment to better understand the issue.
History
Date User Action Args
2018-05-15 20:56:10gasokiwsetrecipients: + gasokiw
2018-05-15 20:56:10gasokiwsetmessageid: <1526417770.88.0.682650639539.issue33527@psf.upfronthosting.co.za>
2018-05-15 20:56:10gasokiwlinkissue33527 messages
2018-05-15 20:56:10gasokiwcreate