+ 1

Is Python similar to Matlab?

Studying the very first lesson of Python language I saw a similitude between Python and Matlab: for example they both don't need compiler. Is it right?

22nd Nov 2017, 5:54 PM
Filippo
Filippo - avatar
1 ответ
0
Python has a compiler! You just don't notice it because it runs automatically. You can tell it's there, though: look at the.pyc(or.pyoif you have the optimizer turned on) files that are generated for modules that youimport.Also, it does not compile to the native machine's code. Instead, it compiles to a byte code that is used by a virtual machine. The virtual machine is itself a compiled program. This is very similar to how Java works; so similar, in fact, that there is a Python variant (Jython) that compiles to the Java Virtual Machine's byte code instead! There's alsoIronPython, which compiles to Microsoft's CLR (used by .NET). (The normal Python byte code compiler is sometimes called CPython to disambiguate it from these alternatives.) ===============《《 Stack overflow
22nd Nov 2017, 6:10 PM
sayan chandra
sayan chandra - avatar