python-traits
The traits package developed by Enthought provides a special type
definition called a trait. Although they can be used as normal Python object
attributes, traits also have several additional characteristics:
* Initialization: A trait can be assigned a default value.
* Validation: A trait attribute's type can be explicitly declared.
* Delegation: The value of a trait attribute can be contained either
in another object.
* Notification: Setting the value of a trait attribute can trigger
notification of other parts of the program.
* Visualization: User interfaces that permit the interactive
modification of a trait's value can be automatically constructed
using the trait's definition.
- Developed at devel:languages:python:numeric
- Sources inherited from project openSUSE:Factory
-
3
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:PowerPC/python-traits && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_multibuild | 0000000053 53 Bytes | |
fix-test.patch | 0000000640 640 Bytes | |
python-traits.changes | 0000016784 16.4 KB | |
python-traits.spec | 0000003808 3.72 KB | |
traits-6.3.1.tar.gz | 0005055439 4.82 MB |
Revision 9 (latest revision is 10)
Dominique Leuenberger (dimstar_suse)
accepted
request 927624
from
Steve Kowalik (StevenK)
(revision 9)
- Update to 6.3.1: * Make PrefixMap._map available again, for compatibility with Mayavi. (#1578) * Support for Python 3.10 has been added. * The observe mini-language now supports use of "*" for listening to all traits on a HasTraits object. Currently this support is limited to cases where the "*" appears in a terminal position. For example, observe("foo:*") is supported, but observe("*:foo") is not. (#1496, #1525) * The Any trait type now supports a factory argument (with accompanying args and kw arguments). This can be used to specify a per-instance default, for example with Any(factory=dict). (#1557, #1558) * When a method is decorated with an observe decorator, the method signature is now checked, and a warning issued if it doesn't match the expected signature. (#1529) * The Date, Datetime and Time trait types have a new argument allow_none. (#1432) * The Date trait type has a new argument allow_datetime .(#1429) * The ObserverGraph instances that result from compiling ObserverExpression objects and observe mini-language strings are now cached. * The equality definition on ObserverExpression has been simplified. (#1517) * A failure to parse an observe mini-language string now raises ValueError rather than LarkError. (#1507) * Invalid assignments to PrefixList and PrefixMap traits produced an unnecessarily nested exception. This has been fixed. (#1564) * An observe-decorated listener method whose name has the special form "_traitname_changed" will no longer be triggered both as as result of the observe decorator and the special naming: it will only be triggered via the observe decorator. (#1560) * The delegate parameter was mistyped in the typing stubs for the Delegate trait type. This has been fixed. (#1556) * The Function and Method trait types will no longer fail when arguments are
Comments 0