29 Jul
2003
29 Jul
'03
5:20 p.m.
Evan Simpson wrote:
'key:' -- use item access with the prefixed string. 'index:' -- use item access with the prefixed integer. 'attr:' -- use attribute access with the prefixed string.
In each case, the path traversal fails if the specified access method fails, rather than trying other access methods. This would allow "options/a_mapping/key:items/index:0" rather than "python:options['a_mapping']['items'][0]".
What an extraordinarily good idea! Why has none of us thought of this before? Like it :-) Chris