Set a flag on the function or a global?

Michael Torrie torriem at gmail.com
Tue Jun 16 09:56:21 EDT 2015


On 06/15/2015 06:19 PM, Ethan Furman wrote:
> Setting a global on the module (which I may not have, and probably
> didn't, import) for only one function is overkill.

What do you mean?  Even if you pull in just one function from the
module on an import, the module's initialization code still runs.







More information about the Python-list mailing list