News for hackers. Stuff that matters.
Re:PythonJS now faster than CPython by pygy_ on Sunday June 08, 2014 @04:29PM (#7865797)
__getattr__ and friends allow to customize the getters and setters.

JavaScript is in the process of getting similar capabilities with Harmony proxies, but the spec has yet to be finalized: http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxie...

Re:PythonJS now faster than CPython by jonpacker on Sunday June 08, 2014 @04:53PM (#7865869)
I'm slightly confused by your wording but I think the functionality you're referring to is already available via Object.defineProperty's "get" and "set" options: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re:PythonJS now faster than CPython by pygy_ on Sunday June 08, 2014 @05:12PM (#7865925)
Object.defineProperty allows to overload get/set for a single key at a time.

Harmony proxies catch everything, and really overload the getter/setter mechanism.