Issue
How do I get the current version of my Python Tornado module version?
With other packages I can do the following:
print <modulename>.__version__
Source: How to check version of Python modules
Solution
Tornado has both tornado.version, which is a string for human consumption (currently "4.2"), and tornado.version_info, which is a numeric tuple that is better for programmatic comparisons (currently (4, 2, 0, 0)). The fourth value of version_info will be negative for betas and other pre-releases.
Answered By - Ben Darnell Answer Checked By - Dawn Plyler (Python.Easybugfix Volunteer)
Post a Comment
Post a Comment