Forum Archive

is the python interpreter written in java?

ellie_ff1493

so i wanted to port the scene modal over to pc (if i am aloud), and i found out that _scene2 is builtin to the interpreter so think i found the interpreter in a file called py3kit? i have no idea whats in it apart from it has parts of _scene2 in but this file starts with "CAFEBABE" and that is the magic number for java class files.

Blanc7a

Python has multiple implementations, some of which even compile down to native machine code where possible.

cvp

@Blanc7a I think his/her question was relative to Pythonista implementation only

mikael

@ellie_ff1493, Pythonista is closed source so we cannot be 100% sure, but it is likely that most non-Python parts are written in ObjectiveC, that there might be some parts written in Swift, and that it is very very very unlikely to contain any Java.

cvp

@ellie_ff1493 I don't know anything about that but I found this:

0xCAFEBABE ("cafe babe") is used by Mach-O to identify Universal object files, and by the Java programming language to identify Java bytecode class files

Thus not only for Java code