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
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
[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
sometimes a have no internet access, but want to work :)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
201 - 207 of 207 matches
Mail list logo