When I designed the FsModuleFormat trait, I imagined it would always generate its own filesystem paths, so I didn't validate them in the try_path method. However I later changed it so the user can supply explicit paths, e.g. through the register-module! operation.
So I added the necessary validation code so that the python format loader doesn't try (and fail) to load a non-python module.
When I designed the FsModuleFormat trait, I imagined it would always generate its own filesystem paths, so I didn't validate them in the
try_path
method. However I later changed it so the user can supply explicit paths, e.g. through theregister-module!
operation.So I added the necessary validation code so that the python format loader doesn't try (and fail) to load a non-python module.