cpython/Doc/library
Brett Cannon 0dbb4c7f13 Issues #18088, 18089: Introduce
importlib.abc.Loader.init_module_attrs() and implement
importlib.abc.InspectLoader.load_module().

The importlib.abc.Loader.init_module_attrs() method sets the various
attributes on the module being loaded. It is done unconditionally to
support reloading. Typically people used
importlib.util.module_for_loader, but since that's a decorator there
was no way to override it's actions, so init_module_attrs() came into
existence to allow for overriding. This is also why module_for_loader
is now pending deprecation (having its other use replaced by
importlib.util.module_to_load).

All of this allowed for importlib.abc.InspectLoader.load_module() to
be implemented. At this point you can now implement a loader with
nothing more than get_code() (which only requires get_source();
package support requires is_package()). Thanks to init_module_attrs()
the implementation of load_module() is basically a context manager
containing 2 methods calls, a call to exec(), and a return statement.
2013-05-31 18:56:47 -04:00
..
2to3.rst merge 3.3 (#4590) 2013-01-28 18:28:53 -05:00
__future__.rst
__main__.rst
_dummy_thread.rst #17166: fix _dummy_thread import example. 2013-02-09 13:23:46 -05:00
_thread.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
abc.rst Fix #16832 - expose cache validity checking support in ABCMeta 2013-05-25 18:41:50 +02:00
aifc.rst Issue #16486: Make aifc files work with 'with' as context managers. 2012-12-29 22:54:49 +02:00
allos.rst
archiving.rst
argparse.rst Update argparse docs to follow order of ArgumentParser() arguments. 2013-04-07 14:44:34 +03:00
array.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
ast.rst
asynchat.rst
asyncore.rst
atexit.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:34:44 +01:00
audioop.rst Issue #16686: Fixed a lot of bugs in audioop module. 2013-02-09 11:10:53 +02:00
base64.rst Issue #18011: base64.b32decode() now raises a binascii.Error if there are 2013-05-28 15:27:29 +03:00
bdb.rst
binary.rst Close #4966: revamp the sequence docs in order to better explain the state of modern Python 2012-08-20 17:14:07 +10:00
binascii.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
binhex.rst
bisect.rst
builtins.rst
bz2.rst #15543: glossary entry for and 'universal newlines', and links to it. 2012-08-15 10:43:58 -04:00
calendar.rst
cgi.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
cgitb.rst
chunk.rst
cmath.rst
cmd.rst merge 2012-07-12 11:26:56 -07:00
code.rst
codecs.rst Issue 17844: Clarify meaning of different codec tables 2013-05-23 20:24:02 +10:00
codeop.rst
collections.abc.rst Update code examples using collections.abc classes. 2013-04-14 10:50:05 +02:00
collections.rst Undo the deprecation of _asdict(). 2013-05-18 00:05:20 -07:00
colorsys.rst #16154: fix some doctests in Doc/library. Patch by Ravi Sinha. 2013-01-11 09:09:07 +02:00
compileall.rst Fix example ignoring ".svn" directories in compileall. 2013-04-14 12:02:43 +02:00
concurrency.rst #17771: fix typo. Patch by Andriy Mysyk. 2013-04-17 07:34:13 +03:00
concurrent.futures.rst merge with 3.3.1 release clone 2013-04-06 16:42:43 +02:00
concurrent.rst Closes #11710: create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http". 2012-10-06 13:49:34 +02:00
configparser.rst Fixes `parser.clean()` reported in issue #16820. 2012-12-31 03:38:39 +01:00
constants.rst #15429: Fix invalid mention of types.NoneType from None docs. 2012-07-22 20:43:13 -04:00
contextlib.rst Merge 3.3 2013-05-10 11:36:23 -04:00
copy.rst #11481: update copyreg docs and add example. 2012-11-08 11:04:57 +02:00
copyreg.rst #11481: merge with 3.2. 2012-11-08 11:06:01 +02:00
crypt.rst Now that it's possible, avoid timing attacks in the crypt module examples) 2012-09-28 18:50:38 +05:30
crypto.rst Now that it's possible, avoid timing attacks in the crypt module examples) 2012-09-28 18:50:38 +05:30
csv.rst #16053: merge with 3.2. 2012-11-18 12:56:17 +02:00
ctypes.rst Issue #18026: fix ctypes doc typo 2013-05-20 14:29:44 -07:00
curses.ascii.rst
curses.panel.rst
curses.rst Merge link addition from 3.2. 2013-02-28 18:03:16 +02:00
custominterp.rst
datatypes.rst Break up the 'someos' docs classification based on a more user-focused scheme, including creation of a separate 'Concurrent Execution' section 2012-08-20 18:05:46 +10:00
datetime.rst #8913: add examples and docs for date/time/datetime.__format__. Patch by Heikki Partanen. 2013-04-04 09:16:15 +03:00
dbm.rst
debug.rst
decimal.rst Issue #15783: Except for the number methods, the C version of decimal now 2012-12-15 22:33:33 +01:00
depgraph-output.png
development.rst
difflib.rst
dis.rst rather than passing locals to the class body, just execute the class body in the proper environment 2013-05-16 14:37:25 -05:00
distutils.rst
doctest.rst #16522: s/always 1/at most 1/. 2012-11-22 06:22:41 -05:00
dummy_threading.rst Issue #16174: Fix suggested usage of dummy_threading module. 2012-10-09 13:44:16 +03:00
email-examples.rst
email.charset.rst
email.encoders.rst
email.errors.rst
email.generator.rst
email.header.rst fix doctest for email.header docs 2012-08-12 14:49:59 +03:00
email.headerregistry.rst
email.iterators.rst
email.message.rst
email.mime.rst Merge usage of argument/parameter and markup fixes from 3.2. 2013-03-20 13:54:18 +02:00
email.parser.rst update doctests 2012-08-12 15:16:42 +03:00
email.policy.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
email.rst
email.util.rst
errno.rst
exceptions.rst Merge from 3.3 (issue #15209) 2012-12-09 16:22:17 +10:00
faulthandler.rst Issue #5969: faulthandler module: rename dump_tracebacks_later() to 2012-09-23 11:06:21 +02:00
fcntl.rst
filecmp.rst Small cosmetic fixes 2013-03-14 14:39:51 -07:00
fileformats.rst
fileinput.rst
filesys.rst
fnmatch.rst #16420: document a way to escape metacharacters in glob/fnmatch. 2012-11-17 17:38:11 +02:00
formatter.rst
fpectl.rst
fractions.rst Remove debug output from example. 2012-12-08 12:29:40 +02:00
frameworks.rst
ftplib.rst MERGE: Closes #16789: :meth:`quit` links to constants instead of own module 2012-12-26 16:47:40 +01:00
functional.rst
functions.rst Merge with 3.3. 2013-03-28 13:28:55 +01:00
functools.rst Clean-up lru_cache examples. The print() not is needed. Set maxsize to a power of two. 2013-04-06 20:27:33 -07:00
gc.rst Issue #16351: New function gc.get_stats() returns per-generation collection statistics. 2012-10-30 22:43:19 +01:00
getopt.rst
getpass.rst
gettext.rst
glob.rst Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:53:27 +01:00
grp.rst
gzip.rst Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'. 2012-11-11 14:14:47 +01:00
hashlib.rst #16518: merge with 3.3. 2013-05-04 18:07:12 +03:00
heapq.rst
hmac.rst #16518: use "bytes-like object" throughout the docs. 2013-05-04 18:06:34 +03:00
html.entities.rst
html.parser.rst
html.rst Closes #11710: create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http". 2012-10-06 13:49:34 +02:00
http.client.rst #17460 - merge from 3.3 2013-03-19 01:22:56 -07:00
http.cookiejar.rst Fix #18007 : Document CookieJar.add_cookie_header request parameter changes in 3.3 2013-05-23 05:27:38 -07:00
http.cookies.rst
http.rst Closes #11710: create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http". 2012-10-06 13:49:34 +02:00
http.server.rst Fix markup/wording. 2013-03-16 22:23:30 +02:00
i18n.rst
idle.rst Issue #5066: Update IDLE docs 2013-01-14 19:27:36 +02:00
imaplib.rst Merge: #13700: Make imap.authenticate with authobject work. 2013-02-19 12:19:13 -05:00
imghdr.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
imp.rst #17135: Add note in imp to use importlib for new programs. 2013-04-18 09:51:17 -04:00
importlib.rst Issues #18088, 18089: Introduce 2013-05-31 18:56:47 -04:00
index.rst Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages. 2012-10-28 11:10:24 -07:00
inspect.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
internet.rst Closes #11710: create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http". 2012-10-06 13:49:34 +02:00
intro.rst
io.rst #13510: clarify that f.readlines() is note necessary to iterate over a file. Patch by Dan Riti. 2013-04-15 19:08:31 +03:00
ipaddress.rst Issue #17047: remove doubled words added in 3.3 2013-03-11 18:34:00 -04:00
ipc.rst Break up the 'someos' docs classification based on a more user-focused scheme, including creation of a separate 'Concurrent Execution' section 2012-08-20 18:05:46 +10:00
itertools.rst Issue 17862: Improve the signature of itertools grouper() recipe. 2013-05-05 19:53:41 -07:00
json.rst #17438: merge with 3.3. 2013-03-29 04:02:14 +02:00
keyword.rst
language.rst
linecache.rst
locale.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
logging.config.rst Closes #16110: fileConfig now accepts a pre-initialised ConfigParser instance. 2012-10-09 09:06:03 +01:00
logging.handlers.rst Closed #9556: Allowed specifying a time-of-day for a TimedRotatingFileHandler to rotate. 2013-04-12 17:04:23 +01:00
logging.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
lzma.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
macpath.rst
mailbox.rst #16071: fix more email.message links in mailbox docs. 2012-09-28 15:19:16 -04:00
mailcap.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
markup.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:35:55 +01:00
marshal.rst Issue #16475: Support object instancing, recursion and interned strings 2013-03-19 18:02:10 -07:00
math.rst #15438: merge with 3.2. 2013-02-23 04:55:24 +02:00
mimetypes.rst
misc.rst
mm.rst
mmap.rst #17402: merge with 3.2. 2013-03-13 02:27:35 +02:00
modulefinder.rst
modules.rst
msilib.rst
msvcrt.rst
multiprocessing.rst Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an 2013-05-20 14:40:46 +02:00
netdata.rst
netrc.rst
nis.rst
nntplib.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:37:01 +01:00
numbers.rst The Integral class does not contain implementations for the bit-shifting operations. (See #3056.) 2013-04-14 11:58:54 +02:00
numeric.rst
operator.rst Issue #16694: Add source code link for operator.py 2013-05-10 19:57:44 -07:00
optparse.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
os.path.rst Merge with 3.3 2013-03-17 15:29:19 -04:00
os.rst Merge with 3.3 2013-05-27 23:26:36 -04:00
ossaudiodev.rst #15831: merge with 3.2 2012-09-14 06:35:09 +03:00
othergui.rst
parser.rst
pdb.rst
persistence.rst
pickle.rst Fix method name in documentation (__setstate__ --> __getstate__) 2013-01-02 05:54:36 -08:00
pickletools.rst
pipes.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
pkgutil.rst Issue #15343: Handle importlib.machinery.FileFinder instances in pkgutil.walk_packages (et al) 2012-07-15 21:19:18 +10:00
platform.rst Issue #15527: fix docs, remove double parens by changing markup. 2012-08-11 21:14:08 +03:00
plistlib.rst #17881: clarify documentation of plistlib. 2013-04-30 16:34:04 +03:00
poplib.rst MERGE: Closes #16789: :meth:`quit` links to constants instead of own module 2012-12-26 16:48:26 +01:00
posix.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
pprint.rst Issue #17150: pprint now uses line continuations to wrap long string literals. 2013-03-23 20:30:39 +01:00
profile.rst #6696: add documentation for the Profile objects, and improve profile/cProfile docs. Patch by Tom Pinckney. 2013-04-12 15:42:06 +03:00
pty.rst pty.spawn() now returns the child process status as returned by os.waitpid(). 2012-09-29 12:41:03 -07:00
pwd.rst
py_compile.rst Issue #17222: Document that py_compile now uses importlib for its file 2013-03-13 09:37:42 -07:00
pyclbr.rst
pydoc.rst
pyexpat.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:35:55 +01:00
python.rst
queue.rst
quopri.rst
random.rst #15831: merge with 3.2 2012-09-14 06:35:09 +03:00
re.rst #16304: merge with 3.2. 2012-11-04 06:59:51 +02:00
readline.rst Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__. 2013-05-04 20:08:35 +02:00
reprlib.rst
resource.rst #17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs. 2013-04-20 13:37:34 -04:00
rlcompleter.rst Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__. 2013-05-04 20:08:35 +02:00
runpy.rst Issue #15230: Update runpy docs to clarify a couple of points that came up in this issue 2012-07-15 00:36:39 +10:00
sched.rst Issue #16642: sched.scheduler timefunc initial default is time.monotonic. 2013-03-09 02:14:27 -05:00
select.rst Issue #16488: epoll() objects now support the `with` statement. 2012-12-15 21:14:21 +01:00
shelve.rst #17040: document that shelve.open() and the Shelf object can be used as context managers. Initial patch by Berker Peksag. 2013-02-01 05:01:50 +02:00
shlex.rst
shutil.rst Fix shutil.which() test for issue #16993. 2013-01-22 10:32:16 +02:00
signal.rst
site.rst Issue #5845: Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__. 2013-05-04 20:08:35 +02:00
smtpd.rst Merge markup fixes in smtpd.rst with 3.2. 2012-09-20 09:09:24 +03:00
smtplib.rst #2118: IOError is deprecated, use OSError. 2013-04-14 06:46:35 -04:00
sndhdr.rst
socket.rst Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX. 2013-05-21 21:02:04 +02:00
socketserver.rst #17653: fix typo in socketserver docs. Patch by Tshepang Lekhonkhobe. 2013-04-12 19:19:21 +03:00
spwd.rst
sqlite3.rst Issue #14720: Enhance sqlite3 microsecond conversion, document its behavior 2013-02-26 21:46:12 +02:00
ssl.rst Issue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets. 2013-04-16 20:28:15 +02:00
stat.rst Closes #16936: fix duplicate/ambiguous description of stat.S_IFMT in the docs. 2013-01-11 20:25:54 +01:00
stdtypes.rst Issue 17920: Fix-up terminology in the set documentation 2013-05-06 18:22:43 -07:00
string.rst Issue #17728: Specify default precision for float.format for presentation types e, f, and g. 2013-04-15 09:51:54 -04:00
stringprep.rst
struct.rst Issue #17804: New function ``struct.iter_unpack`` allows for streaming struct unpacking. 2013-04-27 00:20:04 +02:00
subprocess.rst Issue #16624: `subprocess.check_output` now accepts an `input` argument, 2013-04-22 20:20:54 +03:00
sunau.rst
symbol.rst
symtable.rst
sys.rst merge fix for issue #17953 2013-05-24 17:31:37 -04:00
sysconfig.rst #16135: Removal of OS/2 support (Docs) 2012-10-05 01:11:10 +02:00
syslog.rst #15831: merge with 3.2 2012-09-14 06:35:09 +03:00
tabnanny.rst
tarfile.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
telnetlib.rst
tempfile.rst #17271: merge with 3.2. 2013-02-22 08:29:11 +02:00
termios.rst
test.rst #11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes. 2013-03-07 18:44:29 +02:00
text.rst Break up the 'someos' docs classification based on a more user-focused scheme, including creation of a separate 'Concurrent Execution' section 2012-08-20 18:05:46 +10:00
textwrap.rst Merge #15510: clarify textwrap's handling of whitespace, and add confirming tests. 2012-09-08 13:14:58 -04:00
threading.rst Issue #17435: Don't use mutable default values in Timer. 2013-03-30 17:19:38 -04:00
time.rst Issue #15940: Replace tab. 2013-04-03 12:45:24 -04:00
timeit.rst Issue #16261: fix bare excepts in Doc/ 2012-11-02 22:07:26 +02:00
tk.rst
tkinter.rst Issue #14446: Remove deprecated tkinter functions 2012-10-04 22:10:09 +03:00
tkinter.scrolledtext.rst
tkinter.tix.rst #15831: document multiple signatures on different lines. Patch by Chris Jerdonek. 2012-09-14 06:32:35 +03:00
tkinter.ttk.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
token.rst
tokenize.rst
trace.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
traceback.rst Issue #16261: fix bare excepts in Doc/ 2012-11-02 22:07:26 +02:00
tty.rst
turtle-star.pdf
turtle-star.png
turtle-star.ps
turtle.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
types.rst Issue #15022: Add pickle and comparison support to types.SimpleNamespace. 2013-02-16 16:32:39 -07:00
undoc.rst
unicodedata.rst update links to 6.2.0 2013-03-12 11:56:38 -05:00
unittest.mock-examples.rst #17539: merge with 3.3. 2013-03-30 05:56:21 +02:00
unittest.mock.rst merge 2013-05-25 11:29:03 -04:00
unittest.rst #17871: merge with 3.3. 2013-05-07 09:47:08 +03:00
unix.rst
urllib.error.rst Fix Issue15701 : add .headers attribute to urllib.error.HTTPError 2012-12-10 02:09:35 -08:00
urllib.parse.rst Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior 2013-02-26 01:04:22 -08:00
urllib.request.rst Fix #17272 - Make Request.full_url and Request.get_full_url return same result under all circumstances. 2013-05-24 09:14:12 -07:00
urllib.robotparser.rst Issue #17398: document url argument of RobotFileParser 2013-03-15 16:50:23 -04:00
urllib.rst Closes #11710: create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http". 2012-10-06 13:49:34 +02:00
uu.rst
uuid.rst
venv.rst merge with 3.3 2013-05-12 12:37:12 +02:00
warnings.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
wave.rst #17487: wave.getparams now returns a namedtuple. 2013-04-10 12:31:43 -04:00
weakref.rst Issue #15528: Add weakref.finalize to support finalization using 2013-05-05 23:05:00 +01:00
webbrowser.rst merge with 3.2 2012-08-12 17:34:13 +02:00
windows.rst
winreg.rst Issue #16197: Fix several small errors in winreg documentation. 2012-10-31 19:29:33 +02:00
winsound.rst
wsgiref.rst Fix markup for versionchanged sphinx directive. 2012-07-08 01:32:57 -07:00
xdrlib.rst
xml.dom.minidom.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:47:23 +01:00
xml.dom.pulldom.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:35:55 +01:00
xml.dom.rst Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/* 2013-03-11 17:23:46 -04:00
xml.etree.elementtree.rst Clarify docs too: events can be any sequence (not that the C code supports it) 2013-05-19 09:09:24 -07:00
xml.rst Fix XML vulnerability link targets. 2013-03-28 09:11:44 +01:00
xml.sax.handler.rst
xml.sax.reader.rst
xml.sax.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:35:55 +01:00
xml.sax.utils.rst
xmlrpc.client.rst Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text. 2013-03-28 13:28:44 +01:00
xmlrpc.rst Closes #11710: create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http". 2012-10-06 13:49:34 +02:00
xmlrpc.server.rst Issue 17538: Document XML vulnerabilties 2013-03-26 17:47:23 +01:00
zipfile.rst Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:30:31 +02:00
zipimport.rst Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:34:44 +01:00
zlib.rst Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'. 2012-11-11 14:14:47 +01:00