This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients eric.smith, ezio.melotti, lemburg, mark.dickinson, pitrou, r.david.murray
Date 2009-07-28.17:23:35
SpamBayes Score 2.2216332e-08
Marked as misclassified No
Message-id <1248801821.54.0.588963547635.issue6561@psf.upfronthosting.co.za>
In-reply-to
Content
[ezio.melotti]
> I suggest something like:
> Matches the decimal digits ``[0-9]`` and all the characters that belong
> to the Unicode category Nd (Number, Decimal Digit).

Hmm.  I don't like this because it suggests (to me) that the characters 
[0-9] don't belong to category [Nd].  I agree the previous version was 
clunky, though.  I've shortened it some;  if anyone else wants to work on 
the wording please feel free.  It might be nice to annotate each of these 
character classes (\w, \s) with the Unicode character categories that they 
correspond to.

> 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)).

Thanks.  Changes applied.

Committed to py3k, r74237.   Leaving open for backport to trunk.
History
Date User Action Args
2009-07-28 17:23:42mark.dickinsonsetrecipients: + mark.dickinson, lemburg, pitrou, eric.smith, ezio.melotti, r.david.murray
2009-07-28 17:23:41mark.dickinsonsetmessageid: <1248801821.54.0.588963547635.issue6561@psf.upfronthosting.co.za>
2009-07-28 17:23:36mark.dickinsonlinkissue6561 messages
2009-07-28 17:23:35mark.dickinsoncreate