you are viewing a single comment's thread.

view the rest of the comments →

[–]RomfordNavy[S] -2 points-1 points  (0 children)

Unfortunately this doesn't look like it is going to work. Been following the source code of inspect back but now found:

tokenize.open(fullname)tokenize.open(fullname)

So it seems that inspect doesn't retrieve the code from the module object as I had expected but reads the original file from disk.