News for hackers. Stuff that matters.
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.
Re:Javascript-Style Objects in Python by hasenj on Monday March 16, 2015 @03:48PM (#9213884)
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.