Currently we pretty print link properties on objects, but the only way to actually access them seems to be by getting a Link object instead, which you do by using indexing (obj['link']) instead of dot notation (obj.link).
That all seems pretty arcane and annoying for the user.
I think we should probably expose link properties via indexing (obj['@lprop']) and/or a get_linkprop method.
(We could also support getattr(obj, '@lprop'), but that's a little weirder)
Currently we pretty print link properties on objects, but the only way to actually access them seems to be by getting a
Link
object instead, which you do by using indexing (obj['link']
) instead of dot notation (obj.link).That all seems pretty arcane and annoying for the user.
I think we should probably expose link properties via indexing (obj['@lprop']) and/or a
get_linkprop
method. (We could also supportgetattr(obj, '@lprop')
, but that's a little weirder)