python function to break a message in n lines
<p>Hy everyone, i want to do something like this but my logic is not so goog. I have a message, that must be 80 chars in every line: I can do this like this:</p>

<pre><code>msg = ''
msg_list = []

for i in dict['msg']:
    if len(msg) &gt;= 80 and i.isspace():
    msg_list.append(msg)
    msg = "" 

    msg += i
</code></pre>

<p>The problem here is when my msg don't have 80 chars, any idea to make this block work better?</p>
