Performance penalty for using properties?
Kenneth McDonald
kmmcdonald at wisc.edu
Sat Mar 13 02:42:57 EST 2004
Now that I'm back to Python and all the new (to me) cool features,
I find I'm using properties a lot, i.e. I'm defining:
foo = property(fset=..., fget=...)
for a number of properties, in many of my classes. I'm not using
them for anything performance critical yet, but could see myself
doing so in the future. Can anyone comment on the performance
costs associated with properties vs. simple attribute lookup?
Thanks,
Ken
More information about the Python-list
mailing list