]> granicus.if.org Git - python/commitdiff
Simple changes by Gerrit Holl - move author acknowledgements out of
authorGuido van Rossum <guido@python.org>
Mon, 28 Feb 2000 15:12:25 +0000 (15:12 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 28 Feb 2000 15:12:25 +0000 (15:12 +0000)
docstrings into comments.

Lib/StringIO.py
Lib/cgi.py
Lib/code.py
Lib/ftplib.py
Lib/getpass.py
Lib/imaplib.py
Lib/poplib.py
Lib/smtplib.py
Lib/whrandom.py

index 04ffec9c4db66f07a33d2dd4551e38b4cae79961..8efd7d8c48f9f733a3c6ad74c4b9905b2019ce0f 100644 (file)
@@ -19,6 +19,8 @@ f.getvalue()        # return whole file's contents as a string
 
 Notes:
 - Using a real file is often faster (but less convenient).
+- There's also a much faster implementation in C, called cStringIO, but
+  it's not subclassable.
 - fileno() is left unimplemented so that code which uses it triggers
   an exception early.
 - Seeking far beyond EOF and then writing will insert real null
index d69da04fabeae7dd6e43a088f2f6a6881779cb3b..4eaa983e4d136b25345871f46d2be2c310da2eff 100755 (executable)
@@ -399,23 +399,22 @@ or written by every user on the system.
 - Don't try to give a CGI script a set-uid mode.  This doesn't work on
 most systems, and is a security liability as well.
 
-
-History
--------
-
-Michael McLay started this module.  Steve Majewski changed the
-interface to SvFormContentDict and FormContentDict.  The multipart
-parsing was inspired by code submitted by Andreas Paepcke.  Guido van
-Rossum rewrote, reformatted and documented the module and is currently
-responsible for its maintenance.
-
-
-XXX The module is getting pretty heavy with all those docstrings.
-Perhaps there should be a slimmed version that doesn't contain all those 
-backwards compatible and debugging classes and functions?
-
 """
 
+# XXX The module is getting pretty heavy with all those docstrings.
+# Perhaps there should be a slimmed version that doesn't contain all those 
+# backwards compatible and debugging classes and functions?
+
+# History
+# -------
+# 
+# Michael McLay started this module.  Steve Majewski changed the
+# interface to SvFormContentDict and FormContentDict.  The multipart
+# parsing was inspired by code submitted by Andreas Paepcke.  Guido van
+# Rossum rewrote, reformatted and documented the module and is currently
+# responsible for its maintenance.
+# 
+
 __version__ = "2.2"
 
 
index 6d8c35cd1e74463958b544e878e310308de679e0..5f65b7c9946b3b6c1118c21152f0edc9a6844635 100644 (file)
@@ -1,8 +1,9 @@
 """Utilities needed to emulate Python's interactive interpreter.
 
-Inspired by similar code by Jeff Epler and Fredrik Lundh.
 """
 
+# Inspired by similar code by Jeff Epler and Fredrik Lundh.
+
 
 import sys
 import string
index 94ae880142c951b469fcaa4bfecd3a596c953917..9e3b701d2c9cf0bbc5816f5e3c0c22fe58355ee4 100644 (file)
@@ -3,11 +3,6 @@
 Based on RFC 959: File Transfer Protocol
 (FTP), by J. Postel and J. Reynolds
 
-Changes and improvements suggested by Steve Majewski.
-Modified by Jack to work on the mac.
-Modified by Siebren to support docstrings and PASV.
-
-
 Example:
 
 >>> from ftplib import FTP
@@ -34,6 +29,11 @@ A nice test that reveals some of the network dialogue would be:
 python ftplib.py -d localhost -l -p -l
 """
 
+# 
+# Changes and improvements suggested by Steve Majewski.
+# Modified by Jack to work on the mac.
+# Modified by Siebren to support docstrings and PASV.
+#
 
 import os
 import sys
index 19843d73c59274ebd03401f62452af9449daf575..b81026f6abe768f23d62538d09c87fe48ef7fc07 100644 (file)
@@ -6,10 +6,11 @@ getuser() - get the user name from the environment or password database
 On Windows, the msvcrt module will be used.
 On the Mac EasyDialogs.AskPassword is used, if available.
 
-Authors: Piers Lauder (original)
-         Guido van Rossum (Windows support and cleanup)
 """
 
+# Authors: Piers Lauder (original)
+#          Guido van Rossum (Windows support and cleanup)
+
 import sys
 
 def unix_getpass(prompt='Password: '):
index 898dd9fccccc76e1418afa114e9ccd371f85ca86..9389b221910f3a159fca2877900f11a19d0a84f7 100644 (file)
@@ -3,10 +3,6 @@
 
 Based on RFC 2060.
 
-Author: Piers Lauder <piers@cs.su.oz.au> December 1997.
-
-Authentication code contributed by Donn Cave <donn@u.washington.edu> June 1998.
-
 Public class:          IMAP4
 Public variable:       Debug
 Public functions:      Internaldate2tuple
@@ -15,6 +11,10 @@ Public functions:    Internaldate2tuple
                        Time2Internaldate
 """
 
+# Author: Piers Lauder <piers@cs.su.oz.au> December 1997.
+# 
+# Authentication code contributed by Donn Cave <donn@u.washington.edu> June 1998.
+
 __version__ = "2.32"
 
 import binascii, re, socket, string, time, random, sys
index 251a71237cf40ea79b3f6885f596ed754a9d7e92..a4fd2bc32c88bdc782e21785cad45480cff84b5b 100644 (file)
@@ -1,12 +1,12 @@
 """A POP3 client class.
 
 Based on the J. Myers POP3 draft, Jan. 96
-
-Author: David Ascher <david_ascher@brown.edu>
-        [heavily stealing from nntplib.py]
-Updated: Piers Lauder <piers@cs.su.oz.au> [Jul '97]
 """
 
+# Author: David Ascher <david_ascher@brown.edu>
+#         [heavily stealing from nntplib.py]
+# Updated: Piers Lauder <piers@cs.su.oz.au> [Jul '97]
+
 # Example (see the test function at the end of this file)
 
 TESTSERVER = "localhost"
index df8907da0f48e7496ba4a23bb3e1e365d2097aea..f58d5fc10d74777ce6e0b34231e31d6f52c0095b 100755 (executable)
@@ -2,14 +2,6 @@
 
 """SMTP/ESMTP client class.
 
-Author: The Dragon De Monsyne <dragondm@integral.org>
-ESMTP support, test code and doc fixes added by
-    Eric S. Raymond <esr@thyrsus.com>
-Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)
-    by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
-   
-This was modified from the Python 1.5 library HTTP lib.
-
 This should follow RFC 821 (SMTP) and RFC 1869 (ESMTP).
 
 Notes:
@@ -39,6 +31,14 @@ Example:
   >>> s.quit()
 """
 
+# Author: The Dragon De Monsyne <dragondm@integral.org>
+# ESMTP support, test code and doc fixes added by
+#     Eric S. Raymond <esr@thyrsus.com>
+# Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)
+#     by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
+#    
+# This was modified from the Python 1.5 library HTTP lib.
+
 import socket
 import string
 import re
index fd9b1a9390f2f041278890007880b71f27eca5d6..8cc165024e68f3df7ac087d242e5adc64b7640e2 100644 (file)
@@ -25,10 +25,6 @@ There is also an interface to create multiple independent
 random generators, and to choose from other ranges.
 
 
-Translated by Guido van Rossum from C source provided by
-Adrian Baddeley.
-
-
 
 Multi-threading note: the random number generator used here is not
 thread-safe; it is possible that nearly simultaneous calls in
@@ -37,6 +33,10 @@ have to use a lock around all calls.  (I didn't want to slow this
 down in the serial case by using a lock here.)
 """
 
+# Translated by Guido van Rossum from C source provided by
+# Adrian Baddeley.
+
+
 class whrandom:
        def __init__(self, x = 0, y = 0, z = 0):
                """Initialize an instance.