You're right it's actually evaluated when the module is loaded, not when the function is called, which is not necessarily very intuitive. I'll fix that.