Re:Javascript-Style Objects in Python
by eatonphil on Monday March 16, 2015 @03:14PM
(#9213621)
When have you seen this pattern shown in a Python beginners tutorial? ... or anywhere? I have never seen this pattern before and for that reason it is interesting.
[ Parent
| on HN ]
Why would it show in beginner tutorials?
It's just not pythonic.
> There should be one-- and preferably only one --obvious way to do it.
Not to mention that the object['field'] syntax is rather annoying.