]> granicus.if.org Git - python/commitdiff
a few more __all__ lists
authorSkip Montanaro <skip@pobox.com>
Wed, 7 Feb 2001 23:14:30 +0000 (23:14 +0000)
committerSkip Montanaro <skip@pobox.com>
Wed, 7 Feb 2001 23:14:30 +0000 (23:14 +0000)
Lib/pdb.py
Lib/pickle.py
Lib/pipes.py
Lib/popen2.py
Lib/test/test___all__.py

index d7fe54ab72939aa11f4d10029acfc4da59186d38..6e074a981c72f1e3c2223c7ee58d19e4a94f9053 100755 (executable)
@@ -13,6 +13,9 @@ import repr
 import os
 import re
 
+__all__ = ["run", "pm", "Pdb", "runeval", "runctx", "runcall", "set_trace",
+           "post_mortem", "help"]
+
 def find_function(funcname, filename):
     cre = re.compile(r'def\s+%s\s*[(]' % funcname)
     try:
index 1ec5b496d49125c10cf9758b1356d834c76db059..b0c6a79fdfe7cfd9d65ae18e051cf78066ccf93a 100644 (file)
@@ -31,6 +31,9 @@ import marshal
 import sys
 import struct
 
+__all__ = ["PickleError", "PicklingError", "UnpicklingError", "Pickler",
+           "Unpickler", "dump", "dumps", "load", "loads"]
+
 format_version = "1.3"                     # File format version we write
 compatible_formats = ["1.0", "1.1", "1.2"] # Old format versions we can read
 
index 77a57e815c9e165970e9b614f6913d495d3e9924..ceb32a8697806c3c7f61422f0a1b72a82ca6e1a0 100644 (file)
@@ -56,7 +56,7 @@ To create a new template object initialized to a given one:
    t2 = t.clone()
 
 For an example, see the function test() at the end of the file.
-"""
+"""                                     # '
 
 
 import sys
@@ -66,6 +66,7 @@ import os
 import tempfile
 import string
 
+__all__ = ["Template"]
 
 # Conversion step kinds
 
index e1bf363996abea8ee800647240bfb45d55d8903b..954eb29772ebcb4a1acc69249600947fead7f2da 100644 (file)
@@ -9,6 +9,8 @@ and popen3(cmd) which return two or three pipes to the spawned command.
 import os
 import sys
 
+__all__ = ["popen2", "popen3", "popen4"]
+
 MAXFD = 256     # Max number of file descriptors (os.getdtablesize()???)
 
 _active = []
@@ -155,7 +157,8 @@ else:
         inst = Popen4(cmd, bufsize)
         return inst.fromchild, inst.tochild
 
-
+    __all__.extend(["Popen3", "Popen4"])
+    
 def _test():
     cmd  = "cat"
     teststr = "ab cd\n"
index a3ae9564597efa5718c6c9f342190c64a0b5b338..f6f00c5cd5afbe6eae4dbd140f3bdc7af4946fae 100644 (file)
@@ -95,4 +95,8 @@ check_all("nntplib")
 check_all("ntpath")
 check_all("nturl2path")
 check_all("os")
+check_all("pdb")
+check_all("pickle")
+check_all("pipes")
+check_all("popen2")
 check_all("robotparser")