Home | Trees | Indices | Help |
|
---|
|
Deprecation utilities.
Classes | |
class_deprecated metaclass to print a warning on instantiation of a deprecated class |
|
DeprecationWrapper proxy to print a warning on access to any attribute of the wrapped object... |
Functions | |||
|
|||
|
|||
|
|||
|
Function Details |
automatically creates a class which fires a DeprecationWarning when instantiated. >>> Set = class_renamed('Set', set, 'Set is now replaced by set') >>> s = Set() sample.py:57: DeprecationWarning: Set is now replaced by set s = Set() >>> |
nice wrapper around class_renamed when a class has been moved into another module |
use to tell that a callable has been moved to a new module. It returns a callable wrapper, so that when its called a warning is printed telling where the object can be found, import is done (and not before) and the actual object is called. NOTE: the usage is somewhat limited on classes since it will fail if the wrapper is use in a class ancestors list, use the `class_moved` function instead (which has no lazy import feature though). |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 9 16:06:30 2012 | http://epydoc.sourceforge.net |