summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2013-03-22 21:50:00 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2013-03-22 21:50:00 +0200
commita3251ddd6d9a2948fe8e762673ee6f3a6a66ea55 (patch)
treede5955729288b896c90c5c4da2ed9ab78c37ba40 /docs
parent794e994dc0a67733ed3cebb69ea42eba7dff068c (diff)
downloadpyramid-a3251ddd6d9a2948fe8e762673ee6f3a6a66ea55.tar.gz
pyramid-a3251ddd6d9a2948fe8e762673ee6f3a6a66ea55.tar.bz2
pyramid-a3251ddd6d9a2948fe8e762673ee6f3a6a66ea55.zip
remove visual noise
In addition, we also get syntax highlighting... for free.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/muchadoabouttraversal.rst18
1 files changed, 6 insertions, 12 deletions
diff --git a/docs/narr/muchadoabouttraversal.rst b/docs/narr/muchadoabouttraversal.rst
index 40d498391..483b1bb16 100644
--- a/docs/narr/muchadoabouttraversal.rst
+++ b/docs/narr/muchadoabouttraversal.rst
@@ -168,18 +168,12 @@ hood, when ``adict`` is a dictionary-like object, Python translates
``adict['a']`` to ``adict.__getitem__('a')``. Try doing this in a Python
interpreter prompt if you don't believe us:
-.. code-block:: text
- :linenos:
-
- Python 2.4.6 (#2, Apr 29 2010, 00:31:48)
- [GCC 4.4.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> adict = {}
- >>> adict['a'] = 1
- >>> adict['a']
- 1
- >>> adict.__getitem__('a')
- 1
+>>> adict = {}
+>>> adict['a'] = 1
+>>> adict['a']
+1
+>>> adict.__getitem__('a')
+1
The dictionary-like root object stores the ids of all of its subresources as