pydi
.decorators
index
/cygdrive/c/dev/workspace/pydi_open/src/pydi/decorators.py
Code snippets found from various sources
TODO: Re-identify sources, credit.
Modules
inspect
types
Classes
__builtin__.object
MemoizedMethod
IDGenerating
class
IDGenerating
Methods defined here:
__call__
(self, *args)
__init__
(self, func, srcpos, flagpos)
Static methods defined here:
instance_identifier
()
Generator function for creating ids.
class
MemoizedMethod
(
__builtin__.object
)
Methods defined here:
__call__
(self, *args)
__get__
(self, instance, cls
=None
)
__init__
(self, fn)
Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
Functions
deprecated
(func)
This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted
when the function is used.
memoized
(fnc)
runonexit
(func)
Tells interpreter to execute the function on exit.
synchronized
(lock)
Python equivalent of the Java synchronize keyword on methods; needs
some common lock that will be used to determine thread usage.