번역 파이썬 공식문서 __future__
참고문서
__future__는 다음 세 가지 용도로 사용됩니다.
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 future will fail, because there was no module of that name prior to 2.1).To document when incompatible changes were introduced, and when they will be — or were — made mandatory.
This is a form of executable documentation, and can be inspected programmatically via importing future and examining its contents.