I just started playing with Jython, and sometimes running jython on a .py file creates a .class file, but this does not always happen.
At first, I thought that the trigger is that you need to define a Python class inside the .py file, but obviously the .class file is not always created even then.
What is the mechanism for running a class file?
Thank.
With regular Python, files are .pycgenerated when you are a importmodule, but not when it is __main__.
.pyc
import
__main__
The same thing happens with Jython files - .classwhen you are importa Jython module.
.class
jythonc .
jythonc