4 ms·
From the first part: "If you're looking for import foo, it will eventually find either a file foo.py or foo.so (or foo.dll on Windows)" Does anybody have a link
by andi999 5y ago
From the first part: "If you're looking for import foo, it will eventually find either a file foo.py or foo.so (or foo.dll on Windows)" Does anybody have a link how to import a dll with the 'import' statement?
- rhn_mk1 5y agohttps://docs.python.org/3/extending/extending.html https://docs.python.org/3/extending/extending.html
- okl 5y agoHe's not referring to arbitrary shared libraries but rather to modules implemented in another language, usually C. https://stackoverflow.com/questions/32078764/how-are-python-modules-which-are-shared-libraries-imported-without-a-py-file https://stackoverflow.com/questions/32078764/how-are-python-... https://docs.python.org/3/reference/import.html https://docs.python.org/3/reference/import.html
- andi999 5y agoThanks. Yes, I misread the statement.
- anticodon 5y agoIt is possible to load arbitrary dll using ctypes module: https://docs.python.org/3/library/ctypes.html https://docs.python.org/3/library/ctypes.html