For issues that are specific to Python 3.3. Use the more generic [python] and [python-3.x] tags where possible.
Python is a dynamically and strongly typed programming language whose design philosophy emphasizes code readability. Two significantly different versions of Python (2 and 3) are in use.
Use this tag if your question is specifically about python-3.3. If your question applies to Python in general, use the tag python. If your question applies to Python 3.x but not to Python 2, use the tag python-3.x. If you aren't sure, tag your question python and mention which version you're using in the body of your question.
Python 3.3 was released on September 29, 2012, and has a number of new features:
Syntax:
- The
yield from
expression for generator delegation is introduced. - The
u'unicode
' syntax (which disappeared in Python 3.0) returns.
New standard 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.unittest.mock
- replace parts of your system under test with mock objects.venv
- Python virtual environments, as in the popularvirtualenv
package.
... as well as a reworked I/O exception hierarchy, rewritten import machinery based on importlib
, more compact unicode strings, and more compact attribute dictionaries.
The C Accelerator for the decimal
module has also been significantly improved, as has the unicode handling in the email module.
Finally, for security reasons, hash randomization is now switched on by default.