• Guido van Rossum's avatar
    Since this module already uses doctest-style examples, I figured I'd · 58b6f5b5
    Guido van Rossum yazdı
    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!
    58b6f5b5
Cookie.py 24.3 KB