Package topo :: Package misc :: Module legacy :: Class SnapshotSupport
[hide private]
[frames] | no frames]

Class SnapshotSupport

source code


Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
install(svn=None)
staticmethod(function) -> method
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

install(svn=None)
Static Method

source code 

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.