Question about direct proxies syncing their targets

Tab Atkins Jr. jackalmage at
Fri Jan 13 16:57:59 PST 2012

In the direct proxies proposal at
there's the following line:

 * Invariant checks:
    * if property exists on target as a data property, updates the
target’s property with the returned value

Consider an xrange object like from Python, which represents a numeric
range (with a start, stop, and step) and exposes both an iterator and
get traps.

Am I correct in assuming that, since the target of an xrange proxy is
an empty object, iterating through the xrange or getting specific
values from it will *not* fill up the target in an attempt to
synchronize it with the returned values from the get trap?


More information about the es-discuss mailing list