Message90929
| Author |
ezio.melotti |
| Recipients |
eric.smith, ezio.melotti, lemburg, mark.dickinson, pitrou |
| Date |
2009年07月25日.18:01:48 |
| SpamBayes Score |
2.4670132e-07 |
| Marked as misclassified |
No |
| Message-id |
<1248544911.79.0.95124691119.issue6561@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This seems to me quite redundant:
+ Matches any Unicode decimal digit; more specifically, matches
+ any character in Unicode category [Nd] (Number, Decimal Digit).
+ This includes ``[0-9]``, and also many other digit characters.
I suggest something like:
Matches the decimal digits ``[0-9]`` and all the characters that belong
to the Unicode category Nd (Number, Decimal Digit).
Two more minor details: instead of '\d', I'd use '^\d$' and instead of
self.assertEqual(re.match('\d', x), None)
self.assertIsNone(re.match('\d', x)). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年07月25日 18:01:52 | ezio.melotti | set | recipients:
+ ezio.melotti, lemburg, mark.dickinson, pitrou, eric.smith |
| 2009年07月25日 18:01:51 | ezio.melotti | set | messageid: <1248544911.79.0.95124691119.issue6561@psf.upfronthosting.co.za> |
| 2009年07月25日 18:01:50 | ezio.melotti | link | issue6561 messages |
| 2009年07月25日 18:01:48 | ezio.melotti | create |
|