cpython/Misc
Brett Cannon b1611e2772 Issue #15767: Introduce ModuleNotFoundError, a subclass of
ImportError.

The exception is raised by import when a module could not be found.
Technically this is defined as no viable loader could be found for the
specified module. This includes ``from ... import`` statements so that
the module usage is consistent for all situations where import
couldn't find what was requested.

This should allow for the common idiom of::

  try:
    import something
  except ImportError:
    pass

to be updated to using ModuleNotFoundError and not accidentally mask
ImportError messages that should propagate (e.g. issues with a
loader).

This work was driven by the fact that the ``from ... import``
statement needed to be able to tell the difference between an
ImportError that simply couldn't find a module (and thus silence the
exception so that ceval can raise it) and an ImportError that
represented an actual problem.
2013-06-12 16:59:46 -04:00
..
RPM bump to 3.3.2 2013-05-12 12:51:38 +02:00
ACKS #17511: merge with 3.3. 2013-06-10 23:02:56 -05:00
HISTORY Issue #17047: remove doubled words added in 3.4, 2013-03-11 18:38:13 -04:00
NEWS Issue #15767: Introduce ModuleNotFoundError, a subclass of 2013-06-12 16:59:46 -04:00
Porting
README
README.AIX
README.coverity
README.valgrind
SpecialBuilds.txt
gdbinit
indent.pro
python-config.in - Issue #16754: Fix the incorrect shared library extension on linux. Introduce 2013-03-21 13:31:41 -07:00
python-config.sh.in - Issue #16235: Implement python-config as a shell script. 2013-01-26 11:39:31 +01:00
python-wing3.wpr
python-wing4.wpr
python.man
python.pc.in
svnmap.txt
valgrind-python.supp
vgrindefs

README

Python Misc subdirectory
========================

This directory contains files that wouldn't fit in elsewhere.  Some
documents are only of historic importance.

Files found here
----------------

ACKS                    Acknowledgements
gdbinit                 Handy stuff to put in your .gdbinit file, if you use gdb
HISTORY                 News from previous releases -- oldest last
indent.pro              GNU indent profile approximating my C style
NEWS                    News for this release (for some meaning of "this")
Porting                 Mini-FAQ on porting to new platforms
python-config.in        Python script template for python-config
python.man              UNIX man page for the python interpreter
python.pc.in            Package configuration info template for pkg-config
python-wing*.wpr        Wing IDE project file
README                  The file you're reading now
README.AIX              Information about using Python on AIX
README.coverity         Information about running Coverity's Prevent on Python
README.valgrind         Information for Valgrind users, see valgrind-python.supp
RPM                     (Old) tools to build RPMs
svnmap.txt              Map of old SVN revs and branches to hg changeset ids
SpecialBuilds.txt       Describes extra symbols you can set for debug builds
TextMate                A TextMate bundle for Python development
valgrind-python.supp    Valgrind suppression file, see README.valgrind
vgrindefs               Python configuration for vgrind (a generic pretty printer)
Vim                     Python development utilities for the Vim editor