Re:Strict Python function parameters
by mannykannot on Sunday January 23, 2022 @02:56PM
(#30049852)
> Then this is a feature, not a bug.
> Both in terms of enhancing one's understanding of python's memory model...
In much the same way as having your company bricked by a buffer-overflow ransomware attack does in the C world? I'm not a big fan of elucidation by gotcha.
> [...and] for introducing static/persistent variables to a function (without the need for global declarations)
Except when you are at risk of someone calling with their own variable(s) that do not have the static-singleton semantics that the default would have.
> Both in terms of enhancing one's understanding of python's memory model...
In much the same way as having your company bricked by a buffer-overflow ransomware attack does in the C world? I'm not a big fan of elucidation by gotcha.
> [...and] for introducing static/persistent variables to a function (without the need for global declarations)
Except when you are at risk of someone calling with their own variable(s) that do not have the static-singleton semantics that the default would have.