Home | Trees | Indices | Help |
|
---|
|
|
|||
|
Test Test case |
|
|||
|
accept(*required,
**optional) Decorator function that enforces type checking on arguments of a method. |
||
|
synchronized(f) Decorator function ensuring that parallel threads call the wrapped class method one after the other. |
|
Decorator function that enforces type checking on arguments of a method. Example:@accept( int, float, opt1=int, opt2=PDBModel ) def method( n, fraction, opt2=PDBModel(), **args ): ...The leading 'self' argument of class methods is automatically accepted and the parent class of the method should thus not be given as first type. For keyword arguments, None is always an accepted value. |
Decorator function ensuring that parallel threads call the wrapped class method one after the other. That means, it is guaranteed that this method of a given object is never executed in parallel. However, different instances of the same class are not blocked and can still call the routine in parallel. Example:@synchronized def open_log_file( self, fname ): ...
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Tue May 1 22:34:50 2007 | http://epydoc.sourceforge.net |