April 19, 2015
3:57 p.m.
On Sun, Apr 19, 2015 at 6:51 PM, Ethan Furman <ethan@stoneleaf.us> wrote:
The __get__ method of the descriptor, whether of 'property' or something home-grown, is the "arbitrary code", and could conceivably be quite complex and/or slow -- especially if it has to hit the network to determine whether a proxy object is callable.
Well indeed. But any property could do evil stuff on attribute access (as opposed to a call), should the programmer choose so. I don't see how this is relevant. Thanks, -- Ionel Cristian Mărieș, http://blog.ionelmc.ro