Comment 11 for bug 525808

Revision history for this message
Numérigraphe (numerigraphe) wrote : Re: [Bug 525808] Re: Default values should be immutable

> The test should *only ever* performed when the current function fetches data from the context.
On the contrary I think it should be tested even on dummy 1-line
functions, because one day someone will change them and use the context,
and forget to test it. That's trouble waiting to happen.
Moreover this test is common practice so it's absence surely makes
pythonists unconfortable.
Finally, it can be checked/enforced with a regex once in a while if it's
everywhere.
Lionel