Ian Bicking: the old part of his blog


In JavaScript, the method/attribute and dictionary namespaces are the same; Python's separation of these namespaces allows you to create methods (in one namespace) that implement an object with a clean dictionary-like or array-like interface (in the other). Unifying them would mean that your methods would show up in your item namespace, and you'd just have to hope your users didn't happen to store something under the key 'lookup' or '_lookup' or whatever as an item.
Comment on So many accessors...
by Kragen Sitaker