Thanks Massimo.
I reported an issue with gluon/rocket.py which is not really an issue, sorry about that. There is still an issue with gluon/contrib/generics.py (ouput should be output), you missed it. New (possible) errors: gluon/contrib/gateways/fcgi.py:818:28: undeclared name not builtin: rec gluon/contrib/pyfpdf/html.py:213:42: undeclared name not builtin: color gluon/contrib/pyfpdf/fpdf.pyx:1075:36: undeclared name not builtin: method_exists I'm not sure in any of this because I did not read the code much. This is a first phase, there are still many issues (not web2py errors) but some of the code can be compiled. Mostly the reason why I am doing this is trying to compile dal.py. It failed because of cython parser error (it produced invalid C code, I guess). However I will not give up. I will try to make patches that help the parser but do not break any code, it will take a while. I am very happy to help, web2py is great tool. This is all for now, have a nice day Marin On Feb 14, 3:42 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > This is veyr useful feedback. I think I fixed them all in trunk. > Please check and report more! > > On Feb 14, 3:33 am, Marin Pranjić <marin.pran...@gmail.com> wrote: > > > > > > > > > Hi, > > > I want to compile gluon/* files using Cython and test performance gain > > vs non-compiled code. > > I am using trunk. > > > There are some issues which I will report here. > > These are not all issues, only those that I think are web2py bugs and > > should be fixed. > > > Filename: gluon/dal.py > > 1. gluon/dal.py:1471:39: undeclared name not builtin: db > > 2. gluon/dal.py:3894:41: undeclared name not builtin: Mer > > 3. gluon/dal.py:4185:13: undeclared name not builtin: items > > gluon/dal.py:4315:13: undeclared name not builtin: items > > 4. gluon/dal.py:4255:26: undeclared name not builtin: NotSupported (>1 > > occurrence) > > > Filename: gluon/scheduler.py > > 1. gluon/scheduler.py:163:68: undeclared name not builtin: list_hook > > > Filename: gluon/sqlhtml.py > > 1. gluon/sqlhtml.py:1609:31: undeclared name not builtin: self > > > Filename: gluon/rocket.py > > 1. gluon/rocket.py:1945:20: Reraise not inside except clause > > > Filename: gluon/contrib/feedparser.py > > 1. gluon/contrib/feedparser.py:2721:31: Expected ')', found ',' > > > Filename: gluon/contrib/DowCommerce.py > > 1. gluon/contrib/DowCommerce.py:58:24: local variable 'results' > > referenced before assignment > > > Filename: gluon/contrib/generics.py > > 1. gluon/contrib/generics.py:41:49: undeclared name not builtin: > > warnings > > 2. gluon/contrib/generics.py:39:39: undeclared name not builtin: LU (2 > > occurrences, line 39 & line 41) > > 3. gluon/contrib/generics.py:38:39: undeclared name not builtin: H1 > > 4. gluon/contrib/generics.py:25:24: undeclared name not builtin: ouput > > 5. gluon/contrib/generics.py:20:64: undeclared name not builtin: > > extension (3 occurrences) > > 6. gluon/contrib/generics.py:20:22: undeclared name not builtin: HTTP > > > Filename: gluon/contrib/memdb.py > > 1. gluon/contrib/memdb.py:772:22: undeclared name not builtin: sqlhtml > > > There is more, I will continue later. > > > Marin