Let's consider the following example:
import module
def function(param=module.value):
pass
Is it good practice to set the default value of a function argument to an identifier imported from another module? I know it works, but I am asking rather about clean code approach and possible problems. I can see here a potential vulnerability: the value of the variable imported from module
can be mutable in next release. What do you think about that?