Staging
v0.5.1
https://github.com/python/cpython
Revision 9b88e1587f7c0b9119c8ba2a11f9d4855f14aa0c authored by Raymond Hettinger on 29 April 2003, 04:37:13 UTC, committed by Raymond Hettinger on 29 April 2003, 04:37:13 UTC
A newbie found it difficult to translate the exampe into a
case that used only short options or long options but not both.
He tried to shorten the tuple search but forgot the trailing comma,
The appropriate pattern is an equality check.

Revised the example to point him in the right direction.
1 parent 971f0f0
History
Tip revision: 9b88e1587f7c0b9119c8ba2a11f9d4855f14aa0c authored by Raymond Hettinger on 29 April 2003, 04:37:13 UTC
SF bug #729096: getopt online documentation example improvement
Tip revision: 9b88e15
File Mode Size
README -rw-r--r-- 877 bytes
broadcast.py -rwxr-xr-x 273 bytes
echosvr.py -rwxr-xr-x 676 bytes
finger.py -rwxr-xr-x 1.1 KB
ftp.py -rwxr-xr-x 3.5 KB
gopher.py -rwxr-xr-x 8.1 KB
mcast.py -rwxr-xr-x 2.1 KB
radio.py -rwxr-xr-x 274 bytes
rpython.py -rwxr-xr-x 633 bytes
rpythond.py -rwxr-xr-x 1.0 KB
telnet.py -rwxr-xr-x 2.3 KB
throughput.py -rwxr-xr-x 1.8 KB
udpecho.py -rwxr-xr-x 1.3 KB
unicast.py -rw-r--r-- 220 bytes
unixclient.py -rw-r--r-- 221 bytes
unixserver.py -rw-r--r-- 382 bytes

README

back to top