title: python sending TCP/IP data instantly
body: <p>I am currently sending data over TCP/IP in myserver using something like this </p>
  
  <pre><code>for str in lst:
    data = str + "\n"
    self._conn.sendall(data)
  </code></pre>
  
  <p>Now suppose my list has the following two string  in it</p>
  
  <pre><code>1-This is statement 1 in list
  2-This is statement 2 in list
  </code></pre>
  
  <p>My client is receiving half of line 2 like this.</p>
  
  <pre><code>   This is statement 1 in list
     This is 
  </code></pre>
  
  <p>I would like to send line1 and then line 2 in the list individually. I understand that TCP/IP works this way in which it will send the entire data that is available to send. I think I could put a delay in after calling <code>self._conn.sendall(data)</code> but i wanted to know what other options I have. I cannot make changes to the receiver of the data and I can only make changes to the sender. So far my only option is adding a delay after each send.</p>