Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70619
| 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 <greg.ewing@canterbury.ac.nz> |
| 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 | <bs0bduFgof6U2@mid.individual.net> (permalink) |
| References | <4dfca89b-82c6-42f4-aedb-2fe82a7f7dc1@googlegroups.com> <brrn75Fh59nU1@mid.individual.net> <3abe4779-a237-4113-aaf0-24990895151f@googlegroups.com> <mailman.9501.1398447453.18130.python-list@python.org> |
| 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 | <mailman.9501.1398447453.18130.python-list@python.org> |
| Xref | csiph.com comp.lang.python:70619 |
Show key headers only | View raw
Amirouche Boubekki wrote: > in python3, I do inspect.getsource(object) [doc > <https://docs.python.org/3/library/inspect.html#inspect.getsource>], I > don't know the limitations. The limitation relevant here is that it requires the original source file to be present. :-) -- Greg
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
retrieve source code from code object as returned by compile() Justin Ezequiel <justin.ezequiel@gmail.com> - 2014-04-23 17:58 -0700
Re: retrieve source code from code object as returned by compile() Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-24 17:53 +1200
Re: retrieve source code from code object as returned by compile() Justin Ezequiel <justin.ezequiel@gmail.com> - 2014-04-24 19:50 -0700
Re: retrieve source code from code object as returned by compile() Amirouche Boubekki <amirouche.boubekki@gmail.com> - 2014-04-25 18:34 +0200
Re: retrieve source code from code object as returned by compile() Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-26 12:03 +1200
csiph-web