Returns the Python version as string 'major.minor.patchlevel' Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0).
()
| 1190 | return _sys_version()[0] |
| 1191 | |
| 1192 | def python_version(): |
| 1193 | |
| 1194 | """ Returns the Python version as string 'major.minor.patchlevel' |
| 1195 | |
| 1196 | Note that unlike the Python sys.version, the returned value |
| 1197 | will always include the patchlevel (it defaults to 0). |
| 1198 | |
| 1199 | """ |
| 1200 | return _sys_version()[1] |
| 1201 | |
| 1202 | def python_version_tuple(): |
| 1203 |
searching dependent graphs…