New submission from Edmund Eyles <ho...@heddonsgate.co.uk>:

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

----------
assignee: docs@python
components: Documentation
messages: 149619
nosy: Eddie E, docs@python
priority: normal
severity: normal
status: open
title: Small error in regular expression poker hand example
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13613>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to