On 5/11/07, David Goodger <goodger at python.org> wrote: > Guido van Rossum <guido <at> python.org> writes: > > I'd like to hear from anyone who has access to *real code* that uses > > \u or \U in a raw unicode string. > > Docutils uses it in the docutils.parsers.rst.states module, Body class: > > patterns = { > 'bullet': ur'[-+*\u2022\u2023\u2043]( +|$)', > ... > > attribution_pattern = re.compile(ur'(---?(?!-)|\u2014) *(?=[^ \n])') But wouldn't it be just as handy to teach the re module about \u and \U, just as it already knows about \x (and \123 octals)? -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4