Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: retrieve source code from code object as returned by compile() Date: Sat, 26 Apr 2014 12:03:10 +1200 Lines: 10 Message-ID: References: <4dfca89b-82c6-42f4-aedb-2fe82a7f7dc1@googlegroups.com> <3abe4779-a237-4113-aaf0-24990895151f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net qAWCNRXrVuBG+N0L4KLtlgsxpC+1Hz2KnPO3RSrIVXT4aVfto2 Cancel-Lock: sha1:ZFpzYso0iLNtJvhU6uopBHUD1BY= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:70619 Amirouche Boubekki wrote: > in python3, I do inspect.getsource(object) [doc > ], I > don't know the limitations. The limitation relevant here is that it requires the original source file to be present. :-) -- Greg