inspect.getsource bug?

Ciccio franapoli at gmail.com
Sun Dec 26 13:24:19 EST 2010


Try this:
1) define a function 'foo' in a script
2) runfile the script from a shell
3) do 'inspect.getsource(foo)'
4) change the source of 'foo'
5) runfile the script from the same shell
6) do 3 again

On my 2.6.6 getsource returns twice the same code. I couldn't find
very much about this, is there any known workaround?

thanks



More information about the Python-list mailing list