On Mon, Aug 17, 2009 at 1:12 PM, Mac Ryan<quasipe...@gmail.com> wrote:

> Finally, I somewhere read that embedded declarations are much faster
> than external ones in being referenced. So, if performance is an issue,
> maybe embedding one class within another one might bring you some
> benefit rather than having an object instantiated from the first class
> having to reference a class which is external to its generating one.
> [Hope that is understandable... English is not my first language... :)]

*Local* variables are faster than variables that must be looked up.
Nested classes would not qualify for this.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to