calling one staticmethod from another

Ulrich Eckhardt ulrich.eckhardt at dominolaser.com
Wed Oct 31 03:59:23 EDT 2012


Am 30.10.2012 18:23, schrieb Jean-Michel Pichavant:
> ----- Original Message -----
> [snip]
>> I haven't figured out the justification for staticmethod,
>
> http://en.wikipedia.org/wiki/Namespace
> +
> "Namespaces are one honking great idea -- let's do more of those!"
>
> Someone may successfully use only modules as namespaces, but classes
> can be used as well. It's up to you.

Indeed, see e.g. Steven D'Aprano's approach at formalizing that:

http://code.activestate.com/recipes/578279/


Greetings!

Uli




More information about the Python-list mailing list