Message149562
| Author |
ezio.melotti |
| Recipients |
dwt, ezio.melotti, mrabarnett, pitrou, rhettinger |
| Date |
2011年12月15日.14:31:39 |
| SpamBayes Score |
1.3915566e-05 |
| Marked as misclassified |
No |
| Message-id |
<1323959499.94.0.177188082865.issue13592@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| 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 |
|