Detecting __future__ features

Neil Cerutti horpner at yahoo.com
Mon Jul 30 14:39:51 CEST 2007


On 2007-07-30, Steven D'Aprano
<steve at REMOVE.THIS.cybersource.com.au> wrote:
> How would one tell at runtime if a particular feature has been
> enabled by the "from __future__ import thing" statement?

I don't understand the qualification, "at runtime," you're
making. What's wrong with just importing what you want and using
it? If it's already been enabled, no harm will come from the
import statement.

-- 
Neil Cerutti
Will the highways on the Internet become more few? --George W. Bush



More information about the Python-list mailing list