When Jython starts on a .py file, does the .class file get created?

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.

+5
source share
1 answer

With regular Python, files are .pycgenerated when you are a importmodule, but not when it is __main__.

The same thing happens with Jython files - .classwhen you are importa Jython module.

jythonc .

+5

All Articles