Oct-17-2020, 11:43 PM
(Oct-17-2020, 06:11 PM)Gribouillis Wrote: Pure python modules are compiled into bytecode modules (.pyc files) when they are imported. Python loads the bytecode directly if the .pyc file is newer than the .py file. In your case, the next time you imported the module after your edits, it was "recompiled" and a new .pyc file was written.
So much appreciation!
May I ask a further question? If the installed modules are binary, does interpreter also need to convert it to bytecode at first when I import them?