In article <hef6s8-id5....@satorlaser.homedns.org>, Ulrich Eckhardt <ulrich.eckha...@dominolaser.com> wrote:
> Hi! > > I'd like to give my users a meaningful error message when they are using > obsolete Python versions. Is there some kind of best practice or recipe > for that? Specifically, the case is a bunch of unittests that use > features new to Python 2.7. >>> sys.version_info (2, 6, 1, 'final', 0) major, minor, _, _, _ = sys.version_info self.assertGreaterEqual(minor, 7, "You, dude, fix your python") -- http://mail.python.org/mailman/listinfo/python-list