cpython/Doc/library
Brett Cannon 8f5ac5106e Issue #15767: Touch up ModuleNotFoundError usage by import.
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.

Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.

Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
2013-06-12 23:29:18 -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
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 #18126: update NumPy links in the documentation. Patch by Yury V. Zaytsev. 2013-06-09 01:04:21 +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
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
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
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
configparser.rst
constants.rst
contextlib.rst Merge 3.3 2013-05-10 11:36:23 -04:00
copy.rst
copyreg.rst
crypt.rst
crypto.rst
csv.rst
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
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
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
dummy_threading.rst
email-examples.rst
email.charset.rst
email.encoders.rst
email.errors.rst
email.generator.rst
email.header.rst
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
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 Issue #15767: Touch up ModuleNotFoundError usage by import. 2013-06-12 23:29:18 -04:00
faulthandler.rst
fcntl.rst
filecmp.rst Small cosmetic fixes 2013-03-14 14:39:51 -07:00
fileformats.rst
fileinput.rst
filesys.rst
fnmatch.rst
formatter.rst
fpectl.rst
fractions.rst
frameworks.rst
ftplib.rst
functional.rst
functions.rst merge 2013-06-02 10:04:59 -07:00
functools.rst moved the single-dispatch generic function definitions to the glossary 2013-06-07 22:54:03 +02:00
gc.rst
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
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
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
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
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
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
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
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
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
othergui.rst
parser.rst
pdb.rst
persistence.rst
pickle.rst
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
platform.rst
plistlib.rst #17881: clarify documentation of plistlib. 2013-04-30 16:34:04 +03:00
poplib.rst
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
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
re.rst
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
sched.rst Issue #16642: sched.scheduler timefunc initial default is time.monotonic. 2013-03-09 02:14:27 -05:00
select.rst
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 Closes #11959: SMTPServer and SMTPChannel now take an optional map, use of which avoids affecting global state. 2013-06-07 15:21:41 +01: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 #17134: Add ssl.enum_cert_store() as interface to Windows' cert store. 2013-06-09 19:03:31 +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
syslog.rst
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
textwrap.rst
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
tk.rst
tkinter.rst
tkinter.scrolledtext.rst
tkinter.tix.rst
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
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
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
uu.rst
uuid.rst
venv.rst Issue #18187: merge from 3.3 2013-06-11 14:40:23 -07: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
windows.rst
winreg.rst
winsound.rst
wsgiref.rst
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
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