擅长:python、mysql、java
<p>根据<a href="http://docs.pylonsproject.org/projects/pyramid/1.0/narr/router.html" rel="nofollow">Pyramid docs</a>的说法,线程本地堆栈应该在使用app_iter之后才会弹出(参见步骤16和18),尽管我在运行示例时看到了与您相同的行为。由于文档和行为冲突其中一个是错误的,我建议与金字塔的人<a href="https://github.com/Pylons/pyramid/issues" rel="nofollow">filing a bug</a>。在</p>