diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-01-29 00:36:17 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-01-29 00:36:17 -0800 |
| commit | 4de5a2eab1e767d3bfa55738f7359cc1e4f0de93 (patch) | |
| tree | 454efa0215b83f6af66b4194872098c318a60927 | |
| parent | 02cb9959943d1c862b7b119c16289df280b3ac1f (diff) | |
| parent | e636eeb1ad08dc0f5f1457ee086636045c4ce1e8 (diff) | |
| download | pyramid-4de5a2eab1e767d3bfa55738f7359cc1e4f0de93.tar.gz pyramid-4de5a2eab1e767d3bfa55738f7359cc1e4f0de93.tar.bz2 pyramid-4de5a2eab1e767d3bfa55738f7359cc1e4f0de93.zip | |
Merge pull request #2302 from stevepiercy/master
minor grammar fixes, rewrap to 79 columns, in section "Pyramid uses i…
| -rw-r--r-- | docs/designdefense.rst | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/designdefense.rst b/docs/designdefense.rst index b7aca07ea..2da10108a 100644 --- a/docs/designdefense.rst +++ b/docs/designdefense.rst @@ -907,28 +907,29 @@ much like the ones defined in :mod:`webob.exc`, (e.g., :class:`~pyramid.httpexceptions.HTTPNotFound` or :class:`~pyramid.httpexceptions.HTTPForbidden`). They have the same names and largely the same behavior, and all have a very similar implementation, but not -the same identity. Here's why they have a separate identity: +the same identity. Here's why they have a separate identity. - Making them separate allows the HTTP exception classes to subclass :class:`pyramid.response.Response`. This speeds up response generation - slightly due to the way the Pyramid router works. The same speedup could be + slightly due to the way the Pyramid router works. The same speed up could be gained by monkeypatching :class:`webob.response.Response`, but it's usually the case that monkeypatching turns out to be evil and wrong. -- Making them separate allows them to provide alternate ``__call__`` logic +- Making them separate allows them to provide alternate ``__call__`` logic, which also speeds up response generation. - Making them separate allows the exception classes to provide for the proper value of ``RequestClass`` (:class:`pyramid.request.Request`). -- Making them separate allows us freedom from having to think about backwards - compatibility code present in :mod:`webob.exc` having to do with Python 2.4, - which we no longer support in Pyramid 1.1+. +- Making them separate gives us freedom from thinking about backwards + compatibility code present in :mod:`webob.exc` related to Python 2.4, which + we no longer support in Pyramid 1.1+. - We change the behavior of two classes (:class:`~pyramid.httpexceptions.HTTPNotFound` and :class:`~pyramid.httpexceptions.HTTPForbidden`) in the module so that they - can be used by Pyramid internally for notfound and forbidden exceptions. + can be used by Pyramid internally for ``notfound`` and ``forbidden`` + exceptions. - Making them separate allows us to influence the docstrings of the exception classes to provide Pyramid-specific documentation. @@ -937,6 +938,7 @@ the same identity. Here's why they have a separate identity: Python 2.6 when the response objects are used as exceptions (related to ``self.message``). + .. _simpler_traversal_model: Pyramid has Simpler Traversal Machinery than Does Zope |
