4 ms·
From the examples: >>> from jsonsempai import magic >>> from python_package import file >>> file <module 'python_package.file' from 'python_pac
by vog 11y ago
From the examples:
>>> from jsonsempai import magic
>>> from python_package import file
>>> file
<module 'python_package.file' from 'python_package/file.json'>
I believe it is not a good idea to teach people to import something named "file", as that overrides Python's builtin class "file".
(On the other hand, that class is usually instantiated via calls to "open", so the class name "file" is unused is most programs dealing with files.)