> 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.
David Goodger <goodger <at> python.org> writes: > 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])') Although admittedly, these don't *have* to be raw strings, since they don't contain backslashes as regexp syntax. They were made raw by reflex, because they contain regular expressions. -- DG _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com