<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 10/19/2011 1:10 PM, Navneet wrote:
    <blockquote cite="mid:4E9F0497.7080103@gmail.com" type="cite"> dude
      you are rude yaar :)...just chill I am new to python.... and
      programming ...but one thing ...you must be a damn good trainer :)<br>
      <br>
    </blockquote>
    Thanks for your reply. Please always reply-all so a copy goes to the
    list,<br>
    <br>
    I hear you are new to Python, and want to be respected for that.<br>
    <br>
    This email list is monitored by a few volunteers. We donate our time
    trying to help others get more comfortable with Python.<br>
    <br>
    When I saw your program (with lots of complexity) I assumed you were
    more advanced, My fault.<br>
    <br>
    I recommend you start with something very simple, get is working,
    then add (one at a time) something new.<br>
    <br>
    For example, write a function that tests a number for primality<br>
    <br>
    Apply it to a small list of small numbers. <br>
    <br>
    Get it working correctly.<br>
    <br>
    Forget (for now) about classes and threads. They just complicate
    things.<br>
    <br>
    &gt; I'll try and will let you know the complete program ...just
    give me
    some time ..<br>
    <blockquote cite="mid:4E9F0497.7080103@gmail.com" type="cite">
      <br>
      On 10/19/2011 10:35 PM, bob gailer wrote:
      <blockquote cite="mid:4E9F0350.3080802@gmail.com" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        On 10/19/2011 11:50 AM, Navneet wrote:
        <blockquote cite="mid:4E9EF1C6.7020209@gmail.com" type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <br>
          <font face="Verdana" size="-1">Thank you Bob and Dave,<br>
            Yes the file is as you expected,</font></blockquote>
        <br>
        I don't understand that comment.<br>
        <br>
        <blockquote cite="mid:4E9EF1C6.7020209@gmail.com" type="cite"><font
            face="Verdana" size="-1"> I thought it is easy to figure out
            that you
            have to change the file location in program<br>
          </font></blockquote>
        <br>
        Don't make that assumption. Of course we can figure that out,
        but you
        should use something like &lt;pathname&gt; that is obviously to
        be
        replaced rather than an invalid filename. <br>
        <blockquote cite="mid:4E9EF1C6.7020209@gmail.com" type="cite"><font
            face="Verdana" size="-1"> <br>
            Problem:I am trying to find prime numbers from a file which
            contains a
            list of number and each thread(say 5) is suppose to work on
            different
            number, in short I am applying round-robin method via
            thread.<br>
          </font></blockquote>
        <br>
        What does (say 5) mean? Your program will start <br>
        <blockquote cite="mid:4E9EF1C6.7020209@gmail.com" type="cite"><font
            face="Verdana" size="-1"> </font><br>
          <font face="Verdana" size="-1">I'll try one more time</font></blockquote>
        <font face="Verdana" size="-1">&gt; BTW I have attached the file
          :D<br>
          <br>
          Please don't attach large files. All I wanted was a sample.<br>
        </font> <br>
        We will await your next attempt.<br>
        <br>
        Fix the program, Run it. If you don't get the desired results
        think
        about why, then either continue fixing or post a new program
        with a new
        question.<br>
        <font size="-1"><font face="Verdana"><br>
            Did you think about all the questions I asked. I did not see
            any
            answers. I repeat them here. Please answer.</font></font><br>
        <ul>
          <li> <tt>Why did you use a class? You don't need it, and it
              complicates things.</tt></li>
          <li><tt>Why put some of the code in the mainline of the class
              and
              some in __init__. I see no need for that separation.</tt></li>
          <li><tt> Since you use print statements to monitor progress
              how
              about addind something so you know which print statement
              was called.
              Perhaps </tt><tt>print "I am here 1", </tt><tt>print "I
              am here 2",
              etc.</tt></li>
          <li><tt> Why have the file at all? Why not just start with c =
              range(1,1000)? </tt></li>
          <li><tt>Why print the entire list? (print c)?</tt><br>
          </li>
        </ul>
        <pre class="moz-signature" cols="72">-- 
Bob Gailer
919-636-4239
Chapel Hill NC</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bob Gailer
919-636-4239
Chapel Hill NC</pre>
  </body>
</html>