﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6333	urlresolvers.resolve barfs on regexps with a flag group	leif@…	nobody	"I think I've just run across a small bug with the reverse() method in urlresolvers.py for URLs that contain a flag group (like (?u)). To replicate, construct a urlconf containing a regexp with a flag group, e.g.

{{{
#!python
  url(r'(?u)^foo/(?P<id>\d+)/$', name='foo-url')
}}}

and then use django.core.urlresolvers.reverse to construct a url with parameters:

{{{
#!python
  reverse('foo-url', kwargs=dict(id=12))
}}}

I get a NoMatchError here (not enough positional arguments), but I don't if I remove the flag group at the beginning of the url regexp.

I've attached a small patch for this issue ; the Python re docs state that a flag group should be the first non-whitespace content in the regexp, so I only cover that case."		closed	Core (Other)	dev		wontfix			Ready for checkin	1	0	0	0	0	0
