/usr/share/doc/python-traits/examples/tutorials/doc_examples/examples/disallow.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.
# disallow.py --- Example of using Disallow with wildcards
#--[Imports]--------------------------------------------------------------------
from traits.api import Disallow, Float, \
HasTraits, Int, Str
#--[Code]-----------------------------------------------------------------------
class Person (HasTraits):
name = Str
age = Int
weight = Float
_ = Disallow
|