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
FCNTL.py -rw-r--r-- 2.0 KB
IN.py -rw-r--r-- 3.9 KB
regen -rwxr-xr-x 152 bytes

back to top