Connell, Paul, 09.12.2010 15:54: > I can't install the 0.14 Beta2 using Windows 7 x64, Python 2.7 x64. One of > the generated modules fails to compile. > > building 'Cython.Compiler.Parsing' extension > C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c > /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python27\include > -Ic:\Python27\PC /TcCython\Compiler\Parsing.c > /Fobuild\temp.win-amd64-2.7\Release\Cython\Compiler\Parsing.obj > Parsing.c > Cython\Compiler\Parsing.c(8519) : error C2275: 'PyObject' : illegal use of > this type as an expression
Thanks for catching this. I pushed the following patch to cython-devel. Could you apply it and retry? Stefan diff -r 0ede6da42c99 Cython/Compiler/ExprNodes.py --- a/Cython/Compiler/ExprNodes.py Thu Dec 09 05:41:59 2010 -0800 +++ b/Cython/Compiler/ExprNodes.py Thu Dec 09 16:55:14 2010 +0100 @@ -4181,12 +4181,13 @@ code.put_var_declaration(entry) if entry.type.is_pyobject and entry.used: py_entries.append(entry) - code.put_init_var_to_py_none(entry) if not py_entries: # no local Python references => no cleanup required generate_inner_evaluation_code(code) code.putln('} /* exit inner scope */') return + for entry in py_entries: + code.put_init_var_to_py_none(entry) # must free all local Python references at each exit point old_loop_labels = tuple(code.new_loop_labels()) _______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev