Python 2.4: Why only assignments to None are forbiden?

Ian Bicking ianb at colorstudy.com
Mon Nov 15 07:35:12 CET 2004


Bengt Richter wrote:
> Since this is a compile-time issue , perhaps it is time to consider
> a pragma statement as a framework for telling python pre-runtime things
> like optimization info? E.g., pragma could send in-context meta-info
> to various python infrastructure components using python method call syntax
> which the compiler could recognize in the token stream and compile and
> execute in its working environment right then. So e.g.,
> 
>     pragma compiler.override(len=True, cmp=False)

There's a recipe for doing something very similar to this with the 
current Python:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277940

-- 
Ian Bicking  /  ianb at colorstudy.com  / http://blog.ianbicking.org



More information about the Python-list mailing list