# HG changeset patch # User Paul Boddie # Date 1283728138 -7200 # Node ID bd11b8c03676d81b2bbeb4a1cf5dbadadeb87e11 # Parent 762cc6e1a94e506b7e3c2d5c8e865c3087d62158 Added a note about frame re-use where parameters do not change. diff -r 762cc6e1a94e -r bd11b8c03676 TO_DO.txt --- a/TO_DO.txt Mon Sep 06 00:48:34 2010 +0200 +++ b/TO_DO.txt Mon Sep 06 01:08:58 2010 +0200 @@ -6,6 +6,10 @@ to the function. A strict tuple check is permissible according to the CPython behaviour, but an iterable would be more elegant (as would *args). +Local assignment detection plus frame re-use. Example: slice.__init__ calls +xrange.__init__ with the same arguments which are unchanged in xrange.__init__. There is +therefore no need to build a new frame for this call. + Consider attribute usage observations being suspended inside blocks where AttributeError may be caught (although this doesn't anticipate such exceptions being caught outside a function altogether).