Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cd5cf1cb
Commit
cd5cf1cb
authored
Feb 12, 2001
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
__all__ for several more modules
parent
72f647e9
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
0 deletions
+35
-0
Lib/poplib.py
Lib/poplib.py
+2
-0
Lib/posixfile.py
Lib/posixfile.py
+2
-0
Lib/posixpath.py
Lib/posixpath.py
+5
-0
Lib/pprint.py
Lib/pprint.py
+2
-0
Lib/pre.py
Lib/pre.py
+2
-0
Lib/profile.py
Lib/profile.py
+1
-0
Lib/pstats.py
Lib/pstats.py
+2
-0
Lib/pty.py
Lib/pty.py
+2
-0
Lib/py_compile.py
Lib/py_compile.py
+2
-0
Lib/pyclbr.py
Lib/pyclbr.py
+2
-0
Lib/quopri.py
Lib/quopri.py
+2
-0
Lib/test/test___all__.py
Lib/test/test___all__.py
+11
-0
No files found.
Lib/poplib.py
View file @
cd5cf1cb
...
...
@@ -14,6 +14,8 @@ Based on the J. Myers POP3 draft, Jan. 96
import
re
,
socket
__all__
=
[
"POP3"
,
"error_proto"
]
# Exception raised when an error or invalid response is received:
class
error_proto
(
Exception
):
pass
...
...
Lib/posixfile.py
View file @
cd5cf1cb
...
...
@@ -53,6 +53,8 @@ f.lock(mode [, len [, start [, whence]]])
query only
"""
__all__
=
[
"open"
,
"fileopen"
,
"SEEK_SET"
,
"SEEK_CUR"
,
"SEEK_END"
]
class
_posixfile_
:
"""File wrapper class that provides extra POSIX file routines."""
...
...
Lib/posixpath.py
View file @
cd5cf1cb
...
...
@@ -13,6 +13,11 @@ for manipulation of the pathname component of URLs.
import
os
import
stat
__all__
=
[
"normcase"
,
"isabs"
,
"join"
,
"splitdrive"
,
"split"
,
"splitext"
,
"basename"
,
"dirname"
,
"commonprefix"
,
"getsize"
,
"getmtime"
,
"getatime"
,
"islink"
,
"exists"
,
"isdir"
,
"isfile"
,
"ismount"
,
"walk"
,
"expanduser"
,
"expandvars"
,
"normpath"
,
"abspath"
,
"samefile"
,
"sameopenfile"
,
"samestat"
]
# Normalize the case of a pathname. Trivial in Posix, string.lower on Mac.
# On MS-DOS this may also turn slashes into backslashes; however, other
...
...
Lib/pprint.py
View file @
cd5cf1cb
...
...
@@ -41,6 +41,8 @@ try:
except
ImportError
:
from
StringIO
import
StringIO
__all__
=
[
"pprint"
,
"pformat"
,
"isreadable"
,
"isrecursive"
,
"saferepr"
,
"PrettyPrinter"
]
def
pprint
(
object
,
stream
=
None
):
"""Pretty-print a Python object to a stream [default is sys.sydout]."""
...
...
Lib/pre.py
View file @
cd5cf1cb
...
...
@@ -87,6 +87,8 @@ This module also defines an exception 'error'.
import
sys
from
pcre
import
*
__all__
=
[
"match"
,
"search"
,
"sub"
,
"subn"
,
"split"
,
"findall"
,
"escape"
,
"compile"
]
#
# First, the public part of the interface:
#
...
...
Lib/profile.py
View file @
cd5cf1cb
...
...
@@ -40,6 +40,7 @@ import os
import
time
import
marshal
__all__
=
[
"run"
,
"help"
,
"Profile"
]
# Sample timer for use with
#i_count = 0
...
...
Lib/pstats.py
View file @
cd5cf1cb
...
...
@@ -39,6 +39,8 @@ import re
import
fpformat
__all__
=
[
"Stats"
]
class
Stats
:
"""This class is used for creating reports from data generated by the
Profile class. It is a "friend" of that class, and imports data either
...
...
Lib/pty.py
View file @
cd5cf1cb
...
...
@@ -10,6 +10,8 @@ from select import select
import
os
,
FCNTL
import
tty
__all__
=
[
"openpty"
,
"fork"
,
"spawn"
]
STDIN_FILENO
=
0
STDOUT_FILENO
=
1
STDERR_FILENO
=
2
...
...
Lib/py_compile.py
View file @
cd5cf1cb
...
...
@@ -6,6 +6,8 @@ This module has intimate knowledge of the format of .pyc files.
import
imp
MAGIC
=
imp
.
get_magic
()
__all__
=
[
"compile"
]
def
wr_long
(
f
,
x
):
"""Internal; write a 32-bit int to a file in little-endian order."""
f
.
write
(
chr
(
x
&
0xff
))
...
...
Lib/pyclbr.py
View file @
cd5cf1cb
...
...
@@ -59,6 +59,8 @@ import imp
import
re
import
string
__all__
=
[
"readmodule"
]
TABWIDTH
=
8
_getnext
=
re
.
compile
(
r"""
...
...
Lib/quopri.py
View file @
cd5cf1cb
...
...
@@ -4,6 +4,8 @@
# (Dec 1991 version).
__all__
=
[
"encode"
,
"decode"
]
ESCAPE
=
'='
MAXLINESIZE
=
76
HEX
=
'0123456789ABCDEF'
...
...
Lib/test/test___all__.py
View file @
cd5cf1cb
...
...
@@ -99,4 +99,15 @@ check_all("pdb")
check_all
(
"pickle"
)
check_all
(
"pipes"
)
check_all
(
"popen2"
)
check_all
(
"poplib"
)
check_all
(
"posixfile"
)
check_all
(
"posixpath"
)
check_all
(
"pprint"
)
check_all
(
"pre"
)
check_all
(
"profile"
)
check_all
(
"pstats"
)
check_all
(
"pty"
)
check_all
(
"py_compile"
)
check_all
(
"pyclbr"
)
check_all
(
"quopri"
)
check_all
(
"robotparser"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment