How do I get the current version of my Python Tornado module version?
With other packages I can do the following:
print <modulename>.__version__
How do I get the current version of my Python Tornado module version?
With other packages I can do the following:
print <modulename>.__version__
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.
version and version_info are the names used in the sys module, and I know that pycurl uses the same names (although in pycurl version_info is a function instead of an attribute)If using Ubuntu, open a terminal and type python. Then import tornado and the write command tornado.version.
You will get output like '4.2.1'.
dirto see if there are any attributes that might be it?