From * import python
From 35C3 Wiki
Revision as of 15:33, 28 December 2018 by Overflo
|Description||Import your python code from everywhere and from everything|
|Tags||python, import hooks|
|Language||en - English |
en - English
(Click here to refresh this page.)
|Starts at||2018/12/28 12:00|
|Ends at||2018/12/28 12:45|
|Location||Room:Lecture room M1|
Import hooks are a mechanism that has been present from quite a while in Python, yet wasn't lucky enough to get much attention from the community because... why would you even want to import anything in a non-standard way or from something that's not a .py file?
Have you ever wanted to import python code directly from github or stackoverflow? (no, not in production :) Or maybe generate the code to be imported on the fly, depending on who is asking?
After this talk, you will know how to do the above.
Feel free to contact me should you have any further questions!