Staging
v0.5.1
https://github.com/python/cpython
Revision 58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc authored by Guido van Rossum on 06 April 2001, 19:39:11 UTC, committed by Guido van Rossum on 06 April 2001, 19:39:11 UTC
add a self-test using doctest.  Results:

- The docstring needs to be a raw string because it uses \"...\".

- The oreo example was broken: the Set-Cookie output doesn't add
  quotes around "doublestuff".

- I had to change the example that prints the class of a Cookie.Cookie
  instance to avoid incorporating an arbitrary object address in the
  test output.

Pretty good score for both doctest and the doc string, I'd say!
1 parent f95423e
History
Tip revision: 58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc authored by Guido van Rossum on 06 April 2001, 19:39:11 UTC
Since this module already uses doctest-style examples, I figured I'd
Tip revision: 58b6f5b
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.9 KB
LICENSE -rw-r--r-- 9.2 KB
Makefile.pre.in -rw-r--r-- 21.7 KB
README -rw-r--r-- 37.9 KB
acconfig.h -rw-r--r-- 6.0 KB
config.h.in -rw-r--r-- 16.5 KB
configure -rwxr-xr-x 176.9 KB
configure.in -rw-r--r-- 35.9 KB
install-sh -rwxr-xr-x 5.5 KB
setup.py -rw-r--r-- 24.5 KB

README

back to top