2005-01-06 22:22:45

This class is strictly identical to the python's unicode type

- <attribute '__dict__' of 'stringType' objects>
- <attribute '__weakref__' of 'stringType' objects>

staticmethod(function) -> method

Convert a function to be a static method.

A static method does not receive an implicit first argument. To declare a static method, use this idiom:

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

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class.

Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.
...
- <attribute '__dict__' of 'tokenType' objects>
- <attribute '__weakref__' of 'tokenType' objects>