Package duplicity :: Module static
[hide private]
[frames] | no frames]

Module static

source code

MakeStatic and MakeClass

These functions are used to make all the instance methods in a class into static or class methods.

Classes [hide private]
  StaticMethodsError
Functions [hide private]
 
MakeStatic(cls)
turn instance methods into static ones
source code
 
MakeClass(cls)
Turn instance methods into classmethods.
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

MakeStatic(cls)

source code 

turn instance methods into static ones

The methods (that don't begin with _) of any class that subclasses this will be turned into static methods.

MakeClass(cls)

source code 

Turn instance methods into classmethods. Ignore _ like above