I want to make room for non-string-valued attributes as well as parameter and return type attributes. I don't think the current API would be able to do that without breakage, so I am making the breaking changes now:
Rename Attribute.value to Attribute.string_value so that non-string value properties can be added later.
Changed Function.attribute(kind) to Function.attributes.func[kind]. Other groups are attributes.param(n) and attributes.ret. The type for these groups acts like a dictionary, with __contains__ and __getitem__. __setitem__ and __delitem__ can be implemented later.
I want to make room for non-string-valued attributes as well as parameter and return type attributes. I don't think the current API would be able to do that without breakage, so I am making the breaking changes now:
Attribute.value
toAttribute.string_value
so that non-string value properties can be added later.Function.attribute(kind)
toFunction.attributes.func[kind]
. Other groups areattributes.param(n)
andattributes.ret
. The type for these groups acts like a dictionary, with__contains__
and__getitem__
.__setitem__
and__delitem__
can be implemented later.