| Store | Cart

Performance penalty for using properties?

From: Kenneth McDonald <kmmc...@wisc.edu>
Sat, 13 Mar 2004 07:42:57 GMT
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?


Recent Messages in this Thread
Kenneth McDonald Mar 13, 2004 07:42 am
Mike C. Fletcher Mar 13, 2004 08:19 am
Peter Otten Mar 13, 2004 08:47 am
Aahz Mar 13, 2004 04:09 pm
Joe Mason Mar 13, 2004 05:57 pm
Mike C. Fletcher Mar 13, 2004 08:47 pm
Messages in this thread