Re: [Tutor] Problem with logic while extracting data from binary file

2008-03-28 Thread Bryan Fodness
Thanks again, Still lost, even with watching the variables. I see that it kicks out of the loop, but don't understand what I have done to cause this. I'm sorry for repeated emails, but I have spent multiple days on this. I have added another while loop that I think should work, but I can't seem

Re: [Tutor] parse emails as they come in

2008-03-28 Thread Chris Fuller
The email and mailbox modules might help you out. Multiple email messages will probably parse as an mbox format mailbox. http://docs.python.org/lib/module-email.html http://docs.python.org/lib/module-mailbox.html Cheers On Friday 28 March 2008 03:14, linuxian iandsd wrote: > good morning ever

Re: [Tutor] parse emails as they come in

2008-03-28 Thread Kent Johnson
linuxian iandsd wrote: > but sometimes two or more emails come in at once so the input file that > my python script has to parse is more than five lines !! my question is > how do i effeciently manage this from within my original script. I guess you need to put your processing into a loop? Ken

Re: [Tutor] Help Writing a Bill Calculating Program

2008-03-28 Thread bhaaluu
On Fri, Mar 28, 2008 at 12:50 AM, Amin Han <[EMAIL PROTECTED]> wrote: > Hi, I'm currently a novice at Python, and I need help creating the > following program... > > # Write a program that asks the user to enter a package number and the > total number of hours spent online that month (you may as

Re: [Tutor] Help Writing a Bill Calculating Program

2008-03-28 Thread Andreas Kostyrka
Hint: When you want help with your homework, you should first try to program something. Pasting the requirements to this mailing list will not help you. Homeworks are there so that YOU learn something. Not that you can prove that you are capable to find someone that does it for you. Andreas Am Fr

[Tutor] Help Writing a Bill Calculating Program

2008-03-28 Thread Amin Han
Hi, I'm currently a novice at Python, and I need help creating the following program... # Write a program that asks the user to enter a package number and the total number of hours spent online that month (you may assume that the user will enter an integer number of hours). Using the information b

[Tutor] parse emails as they come in

2008-03-28 Thread linuxian iandsd
good morning everybody ! I have scripted a small program to parse a 5 lines email message as it comes in to my inbox (this is handled by procmail & here is a wonderful intro to it : http://linuxfocus.org/English/November1997/article8.html) so every email is being parsed & information is extracted