Re: [Tutor] Loop not executing.

2013-04-30 Thread Prasad, Ramit
Ajin Abraham wrote: > Hi, >I am using a python snippet that will send some data after the data > length reaches a particular length. So it is supposed to loop and > periodically sends the data to an email. i am using smtplib to send > mail. i will attach the code snippet. > > def email(): >

[Tutor] Loop not executing.

2013-04-30 Thread Ajin Abraham
Hi, I am using a python snippet that will send some data after the data length reaches a particular length. So it is supposed to loop and periodically sends the data to an email. i am using smtplib to send mail. i will attach the code snippet. def email(): global data if len(data)>50: