Le mer. 15 avr. 2020 à 23:38, Glenn Linderman email@example.com a écrit :
Do the child objects truly need to be wrapped, or just accessed?
Thanks for your comments though, they inspired a thought.
The problem with the glom syntax versus the dotted syntax is that the minimal syntax is bulky.
obj.abc.def.ghi versus glom( obj, 'abc.def.ghi')
The problem with attribute syntax is the conflict with regular attributes, and the limitation of valid identifier characters. Glom probably doesn't have these problems.
So my new thought is that we need a new syntax. The minimal existing syntax might be
obj._('abc.def.ghi') or maybe obj['abc.def.ghi']
although the latter would conflict with regular dict lookups, but obj isn't a regular dict, so that might not matter.
Such discussion is better fitted for python-ideas mailing list.