Pinku Surana added the comment:
Thanks. This is clever. I've tried it out and it works. Would it be more
appropriate to use "importlib" and "importlib.abc" to implement a custom loader
for a string script? It looks like importlib.abc.InspectLoa
New submission from Pinku Surana:
I am using Python as a hosted scripting runtime for a product. All the user
scripts are stored in a database. I use "compile" and "exec" to run the
scripts. I'd like to use PDB to debug scripts. Unfortunately, PDB makes a call