"Raymond Hettinger" <[EMAIL PROTECTED]> writes: > I find the disassembly (presented in the first post) to be telling. > The compiler has done a great job and there is no fluff -- all of > those steps have been specified by the programmer and he/she must at > some level be aware of every one of them (pre-instantiation, > multiple method lookups and calls, multiple dictionary accesses, etc).
If the compiler can do some type inference, it can optimize out those multiple calls pretty straightforwardly. -- http://mail.python.org/mailman/listinfo/python-list