On Tue, Jul 16, 2019 at 12:30 PM Christopher Barker <python...@gmail.com> wrote: > > What about __future__? > > Nope: that isn’t really an import.
Actually it is, and the __future__ module is the best way to find out what future directives there are and which versions they're needed in. >>> import __future__ >>> __future__.all_feature_names ['nested_scopes', 'generators', 'division', 'absolute_import', 'with_statement', 'print_function', 'unicode_literals', 'barry_as_FLUFL', 'generator_stop', 'annotations'] >>> __future__.generator_stop _Feature((3, 5, 0, 'beta', 1), (3, 7, 0, 'alpha', 0), 524288) So IMO it *should* be in this sort of collection. ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LAI4JHB7TYZWIXUHAIRPFAB3ZCBM6RAL/ Code of Conduct: http://python.org/psf/codeofconduct/