Is it possible to get the source code of the with block?
E.g.:
with print_source():
someFunction()
someOtherFunction()
# "someFunction()\nsomeOtherFunction()\n" should be printed
If not, is it something that is available in Python C API?
I've tried using sys.settrace, but it only catches function calls, which with-block isn't.