/usr/share/doc/python-traits/examples/tutorials/doc_examples/examples/trait_reuse.py is in python-traits 4.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Copyright (c) 2007, Enthought, Inc.
# License: BSD Style.
# trait_reuse.py --- Example of reusing trait definitions
#--[Imports]--------------------------------------------------------------------
from traits.api import HasTraits, Range
#--[Code]-----------------------------------------------------------------------
coefficient = Range(-1.0, 1.0, 0.0)
class quadratic(HasTraits):
c2 = coefficient
c1 = coefficient
c0 = coefficient
x = Range(-100.0, 100.0, 0.0)
|