Message149382
| Author |
dwt |
| Recipients |
dwt |
| Date |
2011年12月13日.10:42:22 |
| SpamBayes Score |
9.609527e-07 |
| Marked as misclassified |
No |
| Message-id |
<1323772944.14.0.269599775604.issue13592@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When calling repr() on a compiled regex pattern like this:
> import re
> repr(re.compile('foo'))
you don't get the pattern of the regex out of the compiled form. Also all my research has shown no getter to allow this.
I noticed this in my application because I was unable to show good error messages for things involving regexes, which is a shame.
So please add the actual regex to the repr() form of the compiled regex, or alternatively provide a getter / property to get at it. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月13日 10:42:24 | dwt | set | recipients:
+ dwt |
| 2011年12月13日 10:42:24 | dwt | set | messageid: <1323772944.14.0.269599775604.issue13592@psf.upfronthosting.co.za> |
| 2011年12月13日 10:42:23 | dwt | link | issue13592 messages |
| 2011年12月13日 10:42:23 | dwt | create |
|