Mako 下面开发时候,遇到这个问题 TypeError: sequence item : expected string or Unicode, long found Trace 的情况大概这样(我的错误信息无法再现,这是某位外国友人的错误信息) File ‘/Users/amaslov/Projects/dou-pylons/doupy/doupy/controllers/ root.py’, line 239 in staticpage return render(’/pages/%s.html’ % name) File ‘/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site- packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py’, line 274 in render_mako cache_type=cache_type, cache_expire=cache_expire) File ‘/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site- packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py’, line 249 in cached_template return render_func() File ‘/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site- packages/Pylons-0.9.7-py2.5.egg/pylons/templating.py’, line 271 in render_template return literal(template.render_unicode(**globs)) File ‘/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site- packages/Mako-0.2.4-py2.5.egg/mako/template.py’, line 138 in render_unicode return runtime.render(self, self.callable, args, data, as_unicode=True) File ‘/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site- packages/Mako-0.2.4-py2.5.egg/mako/runtime.py’, line 348 in _render return context._pop_buffer().getvalue() File ‘/Users/amaslov/Projects/dou-pylons/py/lib/python2.5/site- packages/Mako-0.2.4-py2.5.egg/mako/util.py’, line 74 in getvalue return self.delim.join(self.data) TypeError: sequence item 68: expected string or Unicode, NoneType found Mako 的邮件列表曾在2009年遇到这个错误,讨论信息在[这里](http://www.mail-archive.com/pylon