What is __future__ in Python used for and how/when to use it, and how it works
The __future__ module frequently appears in Python modules. I do not understand what __future__ is for and how/when to use it even after reading the Python's __future__ doc. Can anyone explain with examples? A few answers regarding the basic usage of __future__ I've received seemed correct. However, I need to understand one more thing regarding how __future__ works: The most confusing concept for me is how a current python release includes features for future releases, and how a program using a feature from a future release can be compiled successfully in the current version of Python. I am gu
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.