Message149562
If an eval-able re.Regex is used, the flags can be showed as second arg, like:
re.Regex('a', re.I|re.S)
instead of being added to the pattern as in
re.Regex('(?is)a')
The repr can be generated with something like
're.Regex({r.pattern!r}, {r.flags})'.format(r=r)
that currently prints
re.Regex('abc', 50)
but if #11957 is fixed, the result will look like
re.Regex('abc', re.I|re.S)
for a regex created with
r = re.compile('abc', re.I|re.S) |
|
Date |
User |
Action |
Args |
2011-12-15 14:31:39 | ezio.melotti | set | recipients:
+ ezio.melotti, rhettinger, pitrou, mrabarnett, dwt |
2011-12-15 14:31:39 | ezio.melotti | set | messageid: <1323959499.94.0.177188082865.issue13592@psf.upfronthosting.co.za> |
2011-12-15 14:31:39 | ezio.melotti | link | issue13592 messages |
2011-12-15 14:31:39 | ezio.melotti | create | |
|