Have you used them? Perl has version tags in source code and everything is feature gated including the stdlib. Python does none of that. The stdlib changes constantly and just looking at source code gives you no indication if you can run it with your installed python version.
> Perl has version tags in source code and everything is feature gated including the stdlib. Python does none of that.
> just looking at source code gives you no indication if you can run it with your installed python versionI prefer Perl's approach for both:
That's explicit, tied to a specific version, and executable code which can be scoped to a single source file.(I'd argued for that feature for years with my `Modern::Perl` feature bundle; glad to see that can be deprecated now.)
I don't believe that "from __future__" is the future-proofing you think it is, they just named it that way to be cute - a hypothetical 3.19 version couldn't even use it, since it's just a normal python import
the very idea of "future feature is not defined" is insaneoAnyway, I'd guess what they intend is
because python really gets off on conditional importsI was responding to the "Python does none of that" by pointing out that Python does indeed have features to help introduce new capabilities in a thoughtful way - I know it's not the same thing as something like conditional imports.
Not sure that >= is going to age well.