API Reference for Enthought Tool Suite 2.7.1
Defines the base TraitHandler class and a standard set of TraitHandler subclasses for use with the Traits package.
A trait handler mediates the assignment of values to object traits. It verifies (via its validate() method) that a specified value is consistent with the object trait, and generates a TraitError exception if it is not consistent.
CallableTypes = (FunctionType, MethodType, CTraitMethod)
Setup a logger for this module.
logger = logging.getLogger(__name__)
RangeTypes = (int, long, float)
trait_from = None
| Local name | Refers to |
|---|---|
| class_of | enthought.traits.trait_base.class_of |
| ClassTypes | enthought.traits.trait_base.ClassTypes |
| CoercableTypes | enthought.traits.trait_base.CoercableTypes |
| copy | copy |
| CTraitMethod | ctraits.CTraitMethod |
| ctraits | ctraits |
| FunctionType | types.FunctionType |
| InstanceType | types.InstanceType |
| logging | logging |
| MethodType | types.MethodType |
| re | re |
| ref | weakref.ref |
| SequenceTypes | enthought.traits.trait_base.SequenceTypes |
| strx | enthought.traits.trait_base.strx |
| sys | sys |
| TraitError | enthought.traits.trait_errors.TraitError |
| TypeType | types.TypeType |
| TypeTypes | enthought.traits.trait_base.TypeTypes |
| Undefined | enthought.traits.trait_base.Undefined |
Copyright © 2002-2008 Enthought, Inc.