Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
set_attribute(key, val)

This method sets the value of the specified attribute.  If that
attribute does not exist, DoesNotExist is raised -- unless the attribute
set is marked 'extensible' or 'private'.  In that case, the attribute is
created and set on the fly (defaulting to mode=writeable, flavor=Scalar,
type=ANY, default=None).  A value of 'None' may reset the attribute to
its default value, if such one exists (see documentation).

Note that this method is performing a number of checks and conversions,(more...)

src/t/r/troy-0.0.3/troy/overlay/pilot_description.py   troy(Download)
        # properties as set
        for key in descr :
            self.set_attribute (key, descr[key])