Source

pypy / pypy / module / exceptions / __init__.py

Author Commit Message Labels Comments Date
Philip Jenvey
kill StandardError
Branches
py3k
Antonio Cuni
the 'exceptions' module is gone in Python3, and exceptions are now directly in builtins. However, in PyPy we cannot simply move them to builtins, because they are needed in the early bootstrap of the space, before builtins is initialized. So, we keep them in a separate module (renamed to '__exceptions__' because it's an internal implementation detail only) but we pretend that its __module__ is 'builtins'. This approach has the extra bonus that it minimizes the divergence from default.
Branches
py3k
Amaury Forgeot d'Arc
hg merge default
Branches
py3k
Armin Rigo
Backout 6f2534aea5ca. It's more of a mess, because e.g. we have lib_pypy/struct.py, but we still want the builtin module if we have it...
Armin Rigo
Obscure: mark some builtin modules (but not others) as taking precedence in an "import xyz" statement if there is a file "xyz.py". The exact list is copied from the default installation of CPython 2.7 on a recent Ubuntu Linux.
Amaury Forgeot d'Arc
Add ResourceWarning. Not used yet, but now "import warnings" passes!
Branches
py3k
Andreas Stührk
Add BufferError, make GeneratorExit inherit from BaseException and update exception hierarchy in docstring. test_pep352 passes now.
Branches
fast-forward
Benjamin Peterson
add BytesWarning
Branches
fast-forward