Staging
v0.8.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
.cvsignore -rw-r--r-- 17 bytes
atof.c -rw-r--r-- 815 bytes
bltinmodule.c -rw-r--r-- 46.0 KB
ceval.c -rw-r--r-- 83.7 KB
codecs.c -rw-r--r-- 9.8 KB
compile.c -rw-r--r-- 126.5 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 5.3 KB
dynload_beos.c -rw-r--r-- 6.3 KB
dynload_dl.c -rw-r--r-- 561 bytes
dynload_hpux.c -rw-r--r-- 1.3 KB
dynload_mac.c -rw-r--r-- 3.3 KB
dynload_next.c -rw-r--r-- 4.8 KB
dynload_os2.c -rw-r--r-- 1020 bytes
dynload_shlib.c -rw-r--r-- 2.1 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 7.5 KB
errors.c -rw-r--r-- 14.6 KB
exceptions.c -rw-r--r-- 30.0 KB
fmod.c -rw-r--r-- 435 bytes
frozen.c -rw-r--r-- 1.2 KB
frozenmain.c -rw-r--r-- 1.3 KB
future.c -rw-r--r-- 6.0 KB
getargs.c -rw-r--r-- 32.9 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 504 bytes
getcwd.c -rw-r--r-- 1.3 KB
getmtime.c -rw-r--r-- 318 bytes
getopt.c -rw-r--r-- 2.3 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 290 bytes
graminit.c -rw-r--r-- 29.5 KB
hypot.c -rw-r--r-- 282 bytes
import.c -rw-r--r-- 61.9 KB
importdl.c -rw-r--r-- 2.0 KB
importdl.h -rw-r--r-- 951 bytes
mactoolboxglue.c -rw-r--r-- 13.9 KB
marshal.c -rw-r--r-- 17.9 KB
memmove.c -rw-r--r-- 439 bytes
modsupport.c -rw-r--r-- 10.0 KB
mysnprintf.c -rw-r--r-- 2.6 KB
mystrtoul.c -rw-r--r-- 3.1 KB
pyfpe.c -rw-r--r-- 623 bytes
pystate.c -rw-r--r-- 6.5 KB
pythonrun.c -rw-r--r-- 33.5 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strerror.c -rw-r--r-- 485 bytes
strtod.c -rw-r--r-- 5.1 KB
structmember.c -rw-r--r-- 5.5 KB
symtable.c -rw-r--r-- 4.4 KB
sysmodule.c -rw-r--r-- 28.0 KB
thread.c -rw-r--r-- 2.3 KB
thread_beos.h -rw-r--r-- 7.5 KB
thread_cthread.h -rw-r--r-- 3.6 KB
thread_foobar.h -rw-r--r-- 2.5 KB
thread_lwp.h -rw-r--r-- 3.8 KB
thread_nt.h -rw-r--r-- 9.6 KB
thread_os2.h -rw-r--r-- 4.5 KB
thread_pth.h -rw-r--r-- 7.1 KB
thread_pthread.h -rw-r--r-- 12.2 KB
thread_sgi.h -rw-r--r-- 11.8 KB
thread_solaris.h -rw-r--r-- 4.2 KB
thread_wince.h -rw-r--r-- 4.0 KB
traceback.c -rw-r--r-- 6.5 KB

back to top