What's New In Python 3.3
Based on What's New In Python 3.3 by Raymond Hettinger.
New syntax features:
yield fromexpression for generator delegation.
u'unicode'syntax is accepted again for
raise ... from Nonesyntax for suppressing exception context.
New library modules:
faulthandler(helps debugging low-level crashes)
ipaddress(high-level objects representing IP addresses and masks)
lzma(compress data using the XZ / LZMA algorithm)
venv(Python virtual environments, as in the popular
New built-in features:
- Reworked I/O exception hierarchy
- Native support for implicit namespace packages (PEP 420).
- Qualified name
__qualname__for classes and functions (PEP 3155).
- Rewritten import machinery based on
- More compact unicode strings.
- More compact attribute dictionaries.
- Hash randomization is switched on by default.
Please read on for a comprehensive list of user-facing changes.