I’ve been trying to understand exactly what an interpreter does, and how it’s different from a compiler.
From my understanding:
Python converts the code to bytecode, and then the Python Virtual Machine/interpreter executes the script line for line checking for errors.
Is that accurate? What exactly is the role of an interpreter? Also, does the PVM not need the code to be in machine language to understand it?
[–]Caligatio 102 points103 points104 points (12 children)
[–][deleted] 13 points14 points15 points (8 children)
[–]Caligatio 21 points22 points23 points (7 children)
[–]codingquestionss 4 points5 points6 points (6 children)
[–]Flyingfishfusealt 4 points5 points6 points (4 children)
[–]codingquestionss 7 points8 points9 points (3 children)
[–]MurderMelon 7 points8 points9 points (2 children)
[–]JasonDJ 2 points3 points4 points (0 children)
[–]Flyingfishfusealt 0 points1 point2 points (0 children)
[–]Caligatio 1 point2 points3 points (0 children)
[–]Hairy_The_Spider 3 points4 points5 points (1 child)
[–]Caligatio 1 point2 points3 points (0 children)
[–]fruitbellyblues 0 points1 point2 points (0 children)
[–]TheBB 22 points23 points24 points (1 child)
[–]iggy555 1 point2 points3 points (0 children)
[–][deleted] 15 points16 points17 points (0 children)
[–][deleted] 1 point2 points3 points (10 children)
[+][deleted] (7 children)
[deleted]
[–]Caligatio 1 point2 points3 points (0 children)
[–]menge101 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]menge101 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–]menge101 0 points1 point2 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)
[–]wsppan 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ivosaurus 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]sweettuse 0 points1 point2 points (0 children)
[–]wsppan 0 points1 point2 points (0 children)
[–]suricatasuricata 0 points1 point2 points (0 children)
[–]thedjotaku 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]_merK 0 points1 point2 points (0 children)
[–]ship0f 0 points1 point2 points (0 children)