> If the optimizer becomes more intelligent > in the future, and also probably easier to document > the purpose would be to use an (uncalled) function: > > def _freeze_hints(): > import spam > > Just another idea, Very nice one! An optimizer could never remove this, because it could be called from outside. --Guido van Rossum (home page: http://www.python.org/~guido/)