This is a pure hypothesis. One thing I could see is doing wakiri, using usernames as the module name for your code. It might be interesting. So, save the user code as wakiri.<username> . Then the application can import wakiri.<username> with interesting material in __init__.py , which runs everything it finds.
Maybe this. Or maybe they store user code in files on disk. Maybe the user code is written to a file containing many dictionaries containing the code and named after the username?
Perhaps they donβt even use it and just think itβs nice to limit people to actual Python variables.
source share