python3 raw strings and \u escapes

Arnaud Delobelle arnodel at gmail.com
Wed May 30 10:27:56 EDT 2012


On 30 May 2012 12:54, Thomas Rachel
<nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de>
wrote:
> There is a 3rd one: use   r'[ ' + '\u3000' + ']'. Not very nice to read, but
> should do the trick...

You could even take advantage of string literal concatenation:)

    r'[' '\u3000' r']'

-- 
Arnaud



More information about the Python-list mailing list