From 6637c5196305b07e4157fee8ea8191f5b25942bc Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 30 Dec 2009 17:50:37 +0000 Subject: Bugs detected by Ricardo Mendes. --- docs/narr/urldispatch.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 728795e7f..77838a02c 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -149,7 +149,7 @@ matchdicts: .. code-block:: text foo/1/2 -> {'baz':u'1', 'bar':u'2'} - foo/abc/def -> {'baz':u'abc', 'bar':u'2'} + foo/abc/def -> {'baz':u'abc', 'bar':u'def'} It will not match the following patterns however: @@ -195,7 +195,7 @@ matchdicts: .. code-block:: text foo/1/2/ -> {'baz':1, 'bar':2, 'traverse':()} - foo/abc/def/a/b/c -> {'baz':abc, 'bar':2, 'traverse':('a', 'b', 'c')} + foo/abc/def/a/b/c -> {'baz':abc, 'bar':def, 'traverse':('a', 'b', 'c')} Note that when a ``*stararg`` remainder match is matched, the value put into the matchdict is turned into a tuple of path segments -- cgit v1.2.3