Re:Things you didn't know about Python
by the_mitsuhiko on Saturday October 06, 2012 @06:33AM
(#4620234)
Don't do this. Your implementation does not work if someone invokes the dscriptor's __get__ by hand which is not uncommon. My implementation takes the shortcut but also still does the correct thing if you keep a reference to the property object.
[ Parent
| on HN ]
There are no comments on this comment yet.