The book I'm reading shows me sys.platform in python3, on windows this runs fine, but in Linux I keep getting back "Linux2" even though my kernel is Linux3.
Doing a search on StackOverflow I have seen people mention platform.system and os.name. The first of these will tell you Linux/Windows but not what version, and the later gives you the technology name as in NT/Posix.
I'm a bit confused to which is the most accurate and preferred method used by experience python coders. Is it possible to obtain "windows7" or Linux3?
Many thanks. ps. Still new to stackoverflow, hopefully formatted my question correctly.
sys.platformnow report only "Linux" and not "Linux2" or "Linux3" etc. bugs.python.org/issue12326 I am still interested to know what experienced coders prefer to use though please.