Abuse of the object-nature of functions?

Fredrik Lundh fredrik at pythonware.com
Tue Jul 11 09:55:35 EDT 2006


"Ant" <antroy at gmail.com> wrote:

> The question is, is this a reasonable thing to do?

absolutely.  a test framework "DSL" is a perfectly valid use case for
function attributes.

> It works, but is it considered bad practice to add attributes to functions?

nope (at least not in small doses ;-)

> And are there any dangers?

nope.

</F> 






More information about the Python-list mailing list