Toolshed: python
¶
Import Python Module¶
import Naked.toolshed.state
Import Python C Module¶
import Naked.toolshed.c.python
The C module must be compiled before you import it. See the naked build documentation for more information.
Description¶
The python module provides functions for Python version testing. It is used internally in the Naked Framework by the Naked.toolshed.state.StateObject
. The functions are public if you would like to use them directly.
Classes¶
None
Functions¶
-
Naked.toolshed.python.
is_py2
()¶ Truth test for execution of script with Python version 2 interpreter
Return type: boolean
-
Naked.toolshed.python.
is_py3
()¶ Truth test for execution of script with Python version 3 interpreter
Return type: boolean
-
Naked.toolshed.python.
py_version
()¶ Full Python version tuple.
Return type: tuple (major, minor, patch)
-
Naked.toolshed.python.
py_major_version
()¶ The major version of the Python interpreter
Return type: int
-
Naked.toolshed.python.
py_minor_version
()¶ The minor version of the Python interpreter
Return type: int
-
Naked.toolshed.python.
py_patch_version
()¶ The patch version of the Python interpreter
Return type: int