Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67116
| References | <530de8ed$0$29985$c3e8da3$5496439d@news.astraweb.com> <mailman.7393.1393422407.18130.python-list@python.org> <530e8608$0$11113$c3e8da3@news.astraweb.com> <mailman.7403.1393474578.18130.python-list@python.org> <530ec365$0$11113$c3e8da3@news.astraweb.com> |
|---|---|
| Date | 2014-02-27 16:05 +1100 |
| Subject | Re: exec and locals |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7405.1393477521.18130.python-list@python.org> (permalink) |
On Thu, Feb 27, 2014 at 3:47 PM, Steven D'Aprano <steve@pearwood.info> wrote: > Guys, I know that exec is kinda dangerous and newbies should be > discouraged from throwing every string they see at it, but this isn't my > second day Python programming, and it's not an accident that Python > supports the dynamic compilation and execution of source code at runtime. > It's a deliberate language feature. We're allowed to use it :-) Code smell means "look at this". It doesn't mean "don't use this feature ever". :) Steven's looked into this thoroughly, I'm sure, and exec is important. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
exec and locals Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-26 13:15 +0000
Re: exec and locals Chris Angelico <rosuav@gmail.com> - 2014-02-27 00:40 +1100
Re: exec and locals Peter Otten <__peter__@web.de> - 2014-02-26 14:46 +0100
Re: exec and locals Steven D'Aprano <steve@pearwood.info> - 2014-02-27 00:25 +0000
Re: exec and locals Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-27 16:34 +1300
Re: exec and locals Steven D'Aprano <steve@pearwood.info> - 2014-02-27 04:39 +0000
Re: exec and locals Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-28 00:29 +1300
Re: exec and locals Chris Angelico <rosuav@gmail.com> - 2014-02-27 22:41 +1100
Re: exec and locals Steven D'Aprano <steve@pearwood.info> - 2014-02-28 01:49 +0000
Re: exec and locals Dan Sommers <dan@tombstonezero.net> - 2014-02-27 03:47 +0000
Re: exec and locals Dave Angel <davea@davea.name> - 2014-02-26 23:20 -0500
Re: exec and locals Steven D'Aprano <steve@pearwood.info> - 2014-02-27 04:47 +0000
Re: exec and locals Chris Angelico <rosuav@gmail.com> - 2014-02-27 16:05 +1100
Re: exec and locals Peter Otten <__peter__@web.de> - 2014-02-26 14:55 +0100
Re: exec and locals Alister <alister.ware@ntlworld.com> - 2014-02-26 14:00 +0000
Re: exec and locals Steven D'Aprano <steve@pearwood.info> - 2014-02-27 00:31 +0000
Re: exec and locals Alister <alister.ware@ntlworld.com> - 2014-02-27 09:59 +0000
csiph-web