Re: Global variables and modules

2004-12-23 Thread Binu K S
Add these lines to test1.py and see what you get: import test2 print 'test2.glbl postinc ', test2.glbl This will work as you expect. Next try chaning glbl in test2 to a list (a mutable type). test2.py: glbl = [25] def inc_glbl(): global glbl glbl[0] = glbl[0] + 1 def get_glb

Re: Koolaid (was Re: Optional Static Typing)

2004-12-23 Thread Tim Churches
Peter Hansen <[EMAIL PROTECTED]> wrote: > > John Roth wrote: > > "Rocco Moretti" <[EMAIL PROTECTED]> wrote: > >> The question is, should Guido state "TDD is the one true way to > >> program in Python.", or should concessions be made in the language > >> design for those who don't "drink the TDD

Re: Python To Send Emails Via Outlook Express

2004-12-23 Thread Lenard Lindstrom
[EMAIL PROTECTED] writes: > Hello again, > Thanks for the advice! > Unfortunately I still cannot get it to send attachments. > It comes up with the following windows error.. > (I have a feeling it has something to do with the file count) > > >>> import simplemapi > >>> simplemapi.SendMail("[EMAIL

[PIL] is there a downloadable docs for PIL

2004-12-23 Thread Egor Bolonev
sometimes a have no internet access, but want to work :) -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression: perl ==> python

2004-12-23 Thread Nick Craig-Wood
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > the undocumented sre.Scanner provides a ready-made mechanism for this > kind of RE matching; see > > http://aspn.activestate.com/ASPN/Mail/Message/python-dev/1614344 > > for some discussion. > > here's (a slight variation of) the code example t

Re: Python To Send Emails Via Outlook Express

2004-12-23 Thread ian
Hi Lenard, You just beat me to it. Suprise, suprise, I discovered the answer myself this time. I have modified the script to allow the attachment(s) to still be passed as a string. Some error checking is also done to verify the attachment file exists. I have also modified it so it can be used for

Re: Python To Send Emails Via Outlook Express

2004-12-23 Thread ian
I wish I new why google doesn't show nicely aligned python code when you paste the script. Anyways, in case this helps someone else you can download the script from http://www.kirbyfooty.com/simplemapi.py Ian -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3