Created
March 20, 2015 15:06
-
-
Save juancarlospaco/50c8197abe543c9688a1 to your computer and use it in GitHub Desktop.
How to know which __future__ to import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import __future__, sys | |
[name for name in __future__.all_feature_names if getattr(__future__, name).optional <= sys.version_info < getattr(__future__, name).mandatory] |
Author
juancarlospaco
commented
Mar 20, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment