Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70619
| 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 | 2014-04-26 12:03 +1200 |
| 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> |
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