[issue10448] Add Mako template benchmark to Python Benchmark Suite

Antoine Pitrou report at bugs.python.org
Wed Nov 17 20:55:29 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Uh, after translation I get a SystemError when trying to run the Mako bench under the current py3k SVN:

$ PYTHONPATH=lib/mako/ /home/antoine/py3k/py3k/python ./performance/bm_mako.py -n 25
Traceback (most recent call last):
  File "./performance/bm_mako.py", line 26, in <module>
    """)
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/template.py", line 183, in __init__
    (code, module) = _compile_text(self, text, filename)
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/template.py", line 463, in _compile_text
    strict_undefined=template.strict_undefined)
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/codegen.py", line 51, in compile
    node)
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/codegen.py", line 98, in __init__
    defs = self.write_toplevel()
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/codegen.py", line 196, in write_toplevel
    main_identifiers = module_identifiers.branch(self.node)
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/codegen.py", line 866, in branch
    return _Identifiers(node, self, **kwargs)
  File "/home/antoine/py3k/benchmarks/3/lib/mako/mako/codegen.py", line 831, in __init__
    self.topleveldefs = util.SetLikeDict(**parent.topleveldefs)
SystemError: Python/getargs.c:1398: bad argument to internal function

----------
assignee: collinwinter -> 
nosy: +benjamin.peterson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10448>
_______________________________________


More information about the Python-bugs-list mailing list