__future__
__future__ — Future statement definitions
Source code: Lib/__future__.py
__future__
is a real module, and serves three purposes:
- To avoid confusing existing tools that analyze import statements and expect to find the modules they’re importing.
- To ensure that future statements run under releases prior to 2.1 at least yield runtime exceptions (the import of 登录查看完整内容