It is Good that you have the book because i have a few questions concerning the books again. This book by M. Zelle is getting really difficult shortly after that section (also as i see the examples are getting fewer) but it was easy till that part, so the question is: is it to me or is the rest of the book indeed explained not well(not like the beginning parts)?. Having heard the recommendations on books for beginners i have ordered the book "Core Python Programming" by Wesley Chun, so comparing those two books which one is more suitable  (recommended) for a beginner to both python and programming?
<br>&nbsp;Here in our local library, the first edition of &quot;Core python programming&quot; is available so i guess i will use it till I receive the second edition, but i think it might take like a month, if not more till it gets to where i live. Is there much difference between the first and second editions? And also one more book, i haven&#39;t ordered it yet, is the &quot;Python from novice to professional&quot; by Magnus Lie Hetland, is it worth ordering and studying for a complete noob?
<br><br>&nbsp;thanks for your answers.<br><br><br><div><span class="gmail_quote">On 8/13/07, <b class="gmail_sendername">Kent Johnson</b> &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
bhaaluu wrote:<br><br>&gt; The original poster posted a post with the following function:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def dec():<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; import string<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message=raw_input(&quot;Enter the message to decode: &quot;)
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result=&#39;&#39;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for x in string.split(message):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result=result+chr(eval(x))<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return result<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print dec()<br>&gt; which is from the book:
<br>&gt; &quot;Python programming: An introduction to CS&quot; by John M. Zelle.<br>&gt;<br>&gt; As a Python Noob, I&#39;m obviously ignorant of most of the Python<br>&gt; language, but I wonder why the author of a book would include
<br>&gt; a function that is a &quot;gaping security hole,&quot; when the int() function<br>&gt; would do the job just as nicely, and without the security concerns?<br><br>I can&#39;t answer for Mr Zelle. Looking at the book, he introduces int(),
<br>float() and long() shortly after the section containing the above example.<br>&gt;<br>&gt; Of course, I don&#39;t know what context the snippet is in because I<br>&gt; don&#39;t have a copy of the book in question. But as a Python Noob,
<br>&gt; I really do appreciate your heads-up about eval(), and I have it<br>&gt; red-flagged as a &#39;gaping security&#39; concern, and will use it with<br>&gt; extreme caution in the future. =)<br><br>Good. There is almost always a better way to accomplish a task than to
<br>use eval().<br><br>&gt; Now for MY question: Besides eval(), are there other functions that<br>&gt; should be &#39;red-flagged&#39; as well? I just haven&#39;t been around Python<br>&gt; long enough yet to become familiar with all of the Standard Library.
<br>&gt; Correct me if I&#39;m wrong, but with 29 keywords, and over 176 library<br>&gt; functions, Python weighs-in at over 200 Standard &quot;objects&quot;?<br><br>Anything where user input is executed as code is a security hole and
<br>should never be opened to untrusted users.<br>eval()<br>exec<br>execfile()<br><br>come to mind.<br><br>Kent<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org
</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>