On Fri, Oct 31, 2008 at 2:58 PM, Robert Bradshaw
<[EMAIL PROTECTED]> wrote:
> Ah, good catch. Cython (and, incidentally I) didn't know that
> __name__ is an already declared module-level variable, hence it
> looked it up as a builtin (and found it there, so no error). This is
> easily fixed by always having __name__ in the module namespace (what
> other magic variables are there?)

$ touch foo.py
$ python2.5 -c 'import foo; print foo.__dict__.keys()'
['__builtins__', '__name__', '__file__', '__doc__']


> It seems the current community values speed more, otherwise they
> would just be using Python directly.

Indeed

-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to