Feb-22-2017, 01:45 AM
(Feb-22-2017, 01:44 AM)Skaperen Wrote: it might come down to the CPU cost ofCould you please show some code that demonstrates what you're doing?.attribute
vs a plain local variable. given thatself
is a local variable there is already the cost of accessingself
. now add on the cost of accessing an attribute within it ... unless python does any performance optimizing forself
specifically (because it is so commonly used) or for repeating expressions.