I have a Python file which might have to support Python versions < 3.x and >= 3.x. Is there a way to introspect the Python runtime to know the version which it is running (for example, 2.6 or 3.2.x)?

9 Answers
9

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *