[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Edmund Eyles

New submission from Edmund Eyles :

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 
<http://bugs.python.org/issue13613>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Edmund Eyles

Edmund Eyles  added the comment:

Changes proposed in file 23978 look good to me!

On 16/12/2011 13:28, Ezio Melotti wrote:
>
> Changes by Ezio Melotti:
>
>
> Added file: http://bugs.python.org/file23978/issue13613.diff
>
> ___
> Python tracker
> <http://bugs.python.org/issue13613>
> ___
>

--

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



[issue5935] Better documentation of use of BROWSER environment variable

2009-05-04 Thread Edmund Eyles

New submission from Edmund Eyles :

The documentation for the webbrowser module at
http://www.python.org/doc/2.5/lib/module-webbrowser.html refers to the
use of the BROWSER environment variable as a means to control which
browser is run.  However, it makes no mention of how the browser name(s)
in this environment variable get translated into executables,
particularly the process by which the only directories to be searched
are those in the PATH environment variable.  

For instance, on my Windows PC where the default browser is IE, simply
setting BROWSER to 'firefox' has no effect.  I also need to add
'C:\Program Files\Mozilla Firefox' to PATH, after which Firefox actually
gets run.

--
assignee: georg.brandl
components: Documentation
messages: 87200
nosy: Eddie E, georg.brandl
severity: normal
status: open
title: Better documentation of use of BROWSER environment variable
type: feature request
versions: Python 2.5

___
Python tracker 
<http://bugs.python.org/issue5935>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com