×

The Traits project allows Python programmers to use a special kind of type definition called a trait, which gives object attributes some additional characteristics: Initialization: A trait has a default value, which is automatically set as the initial value of an attribute before its first use in a program. Validation: The type of a trait attribute is explicitly declared. The type is evident in the code, and only values that meet a programmer-specified set of criteria (i.e., the trait definition) can be assigned to that attribute. Delegation: The value of a trait attribute can be contained either in the defining object or in another object delegated to by the trait. Notification: Setting the value of a trait attribute can notify other parts of the program that the value has changed. Visualization: User interfaces that allow a user to interactively modify the value of a trait attribute can be automatically constructed using the trait’s definition. (This feature requires that a supported GUI toolkit be installed. If this feature is not used, the Traits project does not otherwise require GUI support.)

Uploaded Tue Apr 1 00:34:04 2025
md5 checksum 5a06087b21a07d066bf29fb472ad5f98
arch x86_64
build py311h5eee18b_0
depends libgcc-ng >=11.2.0, python >=3.11,<3.12.0a0
license BSD-3-Clause
license_family BSD
md5 5a06087b21a07d066bf29fb472ad5f98
name traits
platform linux
sha1 aec6b0cd14b232cff5880c16c1814f6bb71bc054
sha256 b80cc2e796eca4b0150b6b34f472f07967e6d50d42598c04167c5ed365f2e25e
size 5440591
subdir linux-64
timestamp 1741858825657
version 7.0.2