Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52993 > unrolled thread
| Started by | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| First post | 2013-08-25 20:25 -0400 |
| Last post | 2013-08-25 20:25 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: python eval function Ned Batchelder <ned@nedbatchelder.com> - 2013-08-25 20:25 -0400
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Date | 2013-08-25 20:25 -0400 |
| Subject | Re: python eval function |
| Message-ID | <mailman.230.1377476728.19984.python-list@python.org> |
On 8/25/13 7:49 PM, Terry Reedy wrote: > On 8/25/2013 3:18 PM, Mohsen Pahlevanzadeh wrote: > >> eval doesn't run my code at the following link: >> http://stackoverflow.com/questions/18432198/eval-function-doesnt-work-in-python >> > > Already answered there (code is statememt, not expression) > The larger issue is that your use of eval seems unnecessary. If you are trying to set variable variable names, you probably want a dict instead. Oh, and get rid of the semicolons at the ends of lines, they are unnecessary and a sign of old habits from another programming language. --Ned.
Back to top | Article view | comp.lang.python
csiph-web