summaryrefslogtreecommitdiff
path: root/Lib/compiler/pycodegen.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-06 19:39:11 +0000
committerGuido van Rossum <guido@python.org>2001-04-06 19:39:11 +0000
commit58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc (patch)
tree9cca0b16e770158e67ed0775f641e471a1338c97 /Lib/compiler/pycodegen.py
parentf95423e2659a08703e37c7fc111d0f60ad3550a4 (diff)
downloadcpython-git-58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc.tar.gz
Since this module already uses doctest-style examples, I figured I'd
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!
Diffstat (limited to 'Lib/compiler/pycodegen.py')
0 files changed, 0 insertions, 0 deletions