Chris McDonough
2012-11-21 71cd93bd78015285db9aaadaa63a5ac9042f6843
refs
author Chris McDonough <chrism@plope.com>
Wednesday, November 21, 2012 00:36 +0100
committer Chris McDonough <chrism@plope.com>
Wednesday, November 21, 2012 00:36 +0100
commit71cd93bd78015285db9aaadaa63a5ac9042f6843
tree 518cdc13b191ce927551745f5b1bead84e8662ac tree | zip | gz
parent e2bacf5565b86dd3394996b8b503ea87da479340 view | diff
- Small microspeed enhancement which anticipates that a
``pyramid.response.Response`` object is likely to be returned from a view.
Some code is shortcut if the class of the object returned by a view is this
class. A similar microoptimization was done to
``pyramid.request.Request.is_response``.
5 files modified
119 ■■■■ changed files
CHANGES.txt 9 ●●●●● diff | view | raw | blame | history
pyramid/config/views.py 78 ●●●●● diff | view | raw | blame | history
pyramid/request.py 2 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_config/test_views.py 23 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_request.py 7 ●●●●● diff | view | raw | blame | history