Message149619
| Author |
Eddie E |
| Recipients |
Eddie E, docs@python |
| Date |
2011年12月16日.12:58:00 |
| SpamBayes Score |
0.0002332841 |
| Marked as misclassified |
No |
| Message-id |
<1324040280.95.0.88061677389.issue13613@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The documentation for Python 2.7.2 has a section of examples for the regular expression match() function, based on a poker hand, at section 7.2.6.1. These examples show a suit of cards as having 14 cards! The ace is counted twice, as '1' and 'a'. Remind me not to play poker against the author.
I would suggest changing the range of the characters that represent the cards' denominations to [2-9tjqka], with a 't' representing a 10, rather than using a '0', and not using either the '0' or the '1'. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月16日 12:58:01 | Eddie E | set | recipients:
+ Eddie E, docs@python |
| 2011年12月16日 12:58:00 | Eddie E | set | messageid: <1324040280.95.0.88061677389.issue13613@psf.upfronthosting.co.za> |
| 2011年12月16日 12:58:00 | Eddie E | link | issue13613 messages |
| 2011年12月16日 12:58:00 | Eddie E | create |
|