Python platform independent?
Let's assume the python code is written and tested on a Linux system using python 2.7.1. It only uses standard python libraries like: os, itertools, tkinter, csv, collections.
If we take this code and put it in python 2.7.1 on a Windows system, will it work fine?
+3
Halox
source
to share
1 answer
Python bytecode itself is platform independent, assuming a complete implementation of a Python virtual machine.
There are certain modules and functions that are only available on certain platforms, so Python source code may be platform dependent if it uses them. The documentation indicates whether the name is only available on a limited subset of platforms, so they can be largely avoided to make it platform independent.
+3
Ignacio Vazquez-Abrams
source
to share