Python Pyramid url replacement variable restrictions
<p>I'm developing in Pyramid 1.7 and running into an interesting scenario where some URL dispatch replacement variables match the route, while others do not.  These variables are numbers, which may not be best practice or even be allowed from what I can tell in the documentation:</p>

<p><a href="http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/urldispatch.html" rel="nofollow">http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/urldispatch.html</a></p>

<p>My route is essentially defined as:</p>

<pre><code>config.add_route("my_route", "/path/more_path/{num_var1}-{num_var2}-even_more_path")
</code></pre>

<p>The funny thing I'm seeing is that if num_var1 = 1 and num_var2 = 1, the path resolves fine.  If num_var1 = 100 and num_var_2 = 100, it also resolves fine.  Yet, if num_var1 = 1 and num_var2 = 100, it fails to resolve.  Is this a failure I should expect for some reason or should this properly resolve?</p>

<p>Thanks!</p>

<p>I made a test case which passes fine with your examples. Feel free to play with this until it reproduces your issues, but until then I'm not sure how to help.</p>

<pre><code>from pyramid.config import Configurator
from webtest import TestApp

config = Configurator()
config.add_route('my_route', '/path/more_path/{num_var1}-{num_var2}-even_more_path')
config.add_view(lambda r: 'hello', route_name='my_route', renderer='string')
app = config.make_wsgi_app()
test = TestApp(app)

test.get('/path/more_path/1-1-even_more_path')
test.get('/path/more_path/100-100-even_more_path')
test.get('/path/more_path/1-100-even_more_path')
test.get('/path/more_path/1-100')  # fails, missing extra path
</code></pre>

python pyramid