Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.support.python_compatibility.partial Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 kw

Detailed Description

Definition at line 34 of file python_compatibility.py.


Constructor & Destructor Documentation

Definition at line 35 of file python_compatibility.py.

00035 
00036         def __init__(*args, **kw):
00037             self = args[0]
00038             self.fn, self.args, self.kw = (args[1], args[2:], kw)


Member Function Documentation

def MoinMoin.support.python_compatibility.partial.__call__ (   self,
  args,
  kw 
)

Definition at line 39 of file python_compatibility.py.

00039 
00040         def __call__(self, *args, **kw):
00041             if kw and self.kw:
00042                 d = self.kw.copy()
00043                 d.update(kw)
00044             else:
00045                 d = kw or self.kw
00046             return self.fn(*(self.args + args), **d)
00047 
00048 
00049 try:
    import hashlib, hmac # Python >= 2.5 needed

Here is the call graph for this function:


Member Data Documentation

Definition at line 37 of file python_compatibility.py.


The documentation for this class was generated from the following file: