[Tutor] Sending Email

2007-10-03 Thread Paul D. Kraus
I have a turbogears app that needs to be able to send out email notifications to users. Just plain text, no attachments. Can anyone suggest some lightweight module? Maybe something Akin to Perl's MIME::Lite. Paul ___ Tutor maillist - Tutor@python.org

[Tutor] string formatting currency

2006-06-20 Thread Paul D. Kraus
How can i print a float as a currency with commas.1222333.4 -> 1,222,333.40if i '%0.2f'%numberi get1222333.40Thanks,Paul ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Python Challange - ord chr incrementing alphabet

2006-06-20 Thread Paul D. Kraus
I just started doing the python challenges and was doing the one where the hint is 3 letters each shifted two places to the right.No big deal just ord / chr and some tests to handle looping past z.I got my answer. Then reading the solutions i see that they suggest that the best way would be to use

[Tutor] Function list that might have a tuple that might have one of its indexs set to 's'

2006-06-09 Thread Paul D. Kraus
I am writing my first python program(at least in a really long time). Its purpose is to take csv or pipe delimited files and convert them to html pages. Was going to be excel but its just not worth the headache. Everyone viewing the reports is doing just that viewing simple tables. I need to scan t

[Tutor] Is there a better way to write this function?

2006-06-09 Thread Paul D. Kraus
This is a second... the first one never hit the list. *shrug* should i be using a different interface to post? is this a gateway to newsgroup?I am writing my first python program(at least in a really long time). Its purpose is to take csv or pipe delimintaed files and convert them to html pages. Wa

[Tutor] Function list that might have a tuple that might have one of its indexs set to 's'

2006-06-09 Thread Paul D. Kraus
I am writing my first python program(at least in a really long time). Its purpose is to take csv or pipe delimintaed files and convert them to html pages. Was going to be excel but its just not worth the headache. Everyone viewing the reports is doing just that viewing simple tables. I need to scan

Re: [Tutor] pyexcelerator

2006-06-09 Thread Paul D. Kraus
I just looked at my copy of PyExcelerator. It seems to be in poor shape.I tried running some of the modules that have if __name__ == '__main__': (i.e. self-testing) and they failed with errors! And I find no visibledocumentation or working examples. Sigh.You might want to check out the recent sourc

Re: [Tutor] pyexcelerator

2006-06-09 Thread Paul D. Kraus
Maybe just try without the 0x0d00 and see what happens? or try thepyExcelerator mailing list on SourceForge... Mailing list looks dead only 2 messages.Man this is the exact module i need to finish converting about 20 scripts from perl and I have no idea how to use most of it. This is very frustrati

[Tutor] pyexcelerator

2006-06-09 Thread Paul D. Kraus
Are their docs anywhere for pyexcelerator? the built in docs are a bit lacking.For instance I can't figure out how to set a column width.I am just reading the examples and they kind of help but I don't follow this ... ws.col(i).width = 0x0d00 + iwhere i is an incrementing integer.so to me it reads

[Tutor] Changing lists in place

2006-04-17 Thread Paul D. Kraus
I have a list that I want to change in a for loop. It changes in the loop but the changes are not persistant outside of the loop.I thought lists were mutuable objects so I am a bit confused.Sample Code#!/usr/bin/env python """ Testing lists """mylist = [ 'One    ', '   two', '   three   ' ]prin