On Jun 19, 10:00 pm, Tom Gur <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to python, and I can't seem to find in the docs how to create
> the python equivalent of what's called in most OOP languages "static
> classes", can you give me a hint ?

Look for @staticmethod in http://docs.python.org/lib/built-in-funcs.html

Example:
class C:
    @staticmethod
    def f(arg1, arg2, ...): ...

--
Gerald Kaszuba
http://geraldkaszuba.com

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to