[docs] documentation bug

Mike Hoy mike at saguaroscuba.com
Wed Oct 3 17:11:56 CEST 2012


On 10/02/2012 05:39 AM, ubaransel at excite.com wrote:
> on the following page:
>   http://docs.python.org/release/2.6.7/library/re.html
>
> or in other words section: "7.2.6.1. Checking For a Pair" in "re" python library documentation it says:
>
> """
>   Suppose you are writing a poker program where a player’s hand is represented as a 5-character string with each character representing a card, “a” for ace, “k” for king, “q” for queen, j for jack, “0” for 10, and “1” through “9” representing the card with that value.
> """
>
> there can not be an ace and a "1" card; so it shoud be:
>
> """
>   Suppose you are writing a poker program where a player’s hand is represented as a 5-character string with each character representing a card, “a” for ace, “k” for king, “q” for queen, j for jack, “0” for 10, and “2” through “9” representing the card with that value.
> """
>
> This error exists in  python 2.6 and 3.1 documentation.
> I did not check other versions.
> _______________________________________________
> docs mailing list
> docs at python.org
> http://mail.python.org/mailman/listinfo/docs
I checked: http://docs.python.org/py3k/library/re.html#checking-for-a-pair

It says:

Suppose you are writing a poker program where a player’s hand is 
represented as a 5-character string with each character representing a 
card, “a” for ace, “k” for king, “q” for queen, “j” for jack, “t” for 
10, and “2” through “9” representing the card with that value.



-- 
-Mike Hoy



More information about the docs mailing list