Re: sending emails to a list of recipients [update]

2006-03-25 Thread Larry Bates
smtplib docs http://python.active-venture.com/lib/SMTP-example.html say that the to should be a list of addresses (your emails); s.sendmail(msg['From'], emails, msg.as_string()) -Larry Bates Kun wrote: > Kun wrote: >> i have the following code: >> >> -- >> import

Re: noobie mkdir problem/question

2006-03-25 Thread [EMAIL PROTECTED]
First, what version of python are you using? 2.4.2 (and some previous versions) use file() instead of open(), although open may still work. also, if your code in the previous post is still using: outputFname = given + '.log' outputFile = open(os.path.join(xrefs,outputFname), 'w') I hope you have

Re: Accessing func_name from inside a function

2006-03-25 Thread Steven D'Aprano
On Sun, 26 Mar 2006 10:19:36 +1000, Ben Finney wrote: > "James Thiele" <[EMAIL PROTECTED]> writes: > >> I'd like to access the name of a function from inside the function. > > A function, like most other objects in Python, can have any number of > names bound to it without the object being infor

Re: noobie mkdir problem/question

2006-03-25 Thread Larry Bates
Except for the fact that I don't have any idea where "given" variable comes from. This works perfectly for me. It writes data into /xrefs/given.log perfectly. In the future you should cut/paste your code so we can see enough to help better. Here is my code with a few changes. import os import s

Re: What's The Best Editor for python

2006-03-25 Thread jussij
> Can one of you say to me what's the best editor for > editing the python programs( for linux or windows ) The Zeus for Windows IDE has support for Python: http://www.zeusedit.com/python.html It does Python code folding, smart indenting and syntax highlighting. It also has features like proj

Re: is mysqlsb compatible with MySQL 5.0?

2006-03-25 Thread John Salerno
Ravi Teja wrote: > Ah! An overzealous firewall! My sympathies :-). I am using the free > Kerio personal firewall on Windows. > Actually, I'm a little confused now. I turned off Norton completely (as far as I can tell), restarted, and the configuration wizard of MySQL still fails at the "Start s

Re: is mysqlsb compatible with MySQL 5.0?

2006-03-25 Thread John Salerno
Dennis Lee Bieber wrote: > On Sat, 25 Mar 2006 16:07:56 -0500, John Salerno > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> My web server told me it isn't, which is why they are sticking with >> MySQL 4.0 for now, but I'm obsessed with using the latest versions, so I >> j

Re: What's The Best Editor for python

2006-03-25 Thread Andrew Gwozdziewycz
If you want something that won't get in your way, you should really use /bin/ed. It's probably simpler to use then searching the archives. /bin/ed will also run in cygwin for windows. >> Can one of you say to me what's the best editor for >> editing the python programs( for linux or windows ) -

Re: What's The Best Editor for python

2006-03-25 Thread Patrick Stinson
emacs google: python-mode - Original Message - From: [EMAIL PROTECTED] Date: Saturday, March 25, 2006 6:10 pm Subject: Re: What's The Best Editor for python To: python-list@python.org > > Can one of you say to me what's the best editor for > > editing the python programs( for linux or wi

MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Please let me state off the cuff that I'm not after a big "Python Vs Ruby" war or anything here! I'm trying to make the switch to Python for my web development work as I've been using it for quite some time for other programming work (albeit mainly hobby and personal interest projects) as I'm getti

Re: MVC in Python for web app dev

2006-03-25 Thread Rune Strand
[EMAIL PROTECTED] wrote: > Please let me state off the cuff that I'm not after a big "Python Vs > Ruby" war or anything here! I'm trying to make the switch to Python for > my web development work as I've been using it for quite some time for > other programming work (albeit mainly hobby and person

Re: is mysqlsb compatible with MySQL 5.0?

2006-03-25 Thread John Salerno
Dennis Lee Bieber wrote: > WinXP? What error do you get from the wizard? (You are running in an > Admin privilege I presume). Yes, WinXP and admin. At first, when Norton was running, I got a 1045 error message saying to allow TCP port 3306. I tried creating a rule to do this, but it didn

object references

2006-03-25 Thread DrConti
Dear Python developer community, I'm quite new to Python, so perhaps my question is well known and the answer too. I need a variable alias ( what in other languages you would call "a pointer" (c) or "a reference" (perl)) I read some older mail articles and I found that the offcial position about

Re: object references

2006-03-25 Thread Felipe Almeida Lessa
Em Sáb, 2006-03-25 às 21:33 -0800, DrConti escreveu: [snip] > There was also a suggestion to write a real problem where referencing > is really needed. > I have one...: [snap] There are loads of discussions about the code you wrote... but... isn't bad practice to put the same data in two places? O

Re: object references

2006-03-25 Thread DrConti
Felipe Almeida Lessa schrieb: > Em Sáb, 2006-03-25 às 21:33 -0800, DrConti escreveu: > [snip] > > There was also a suggestion to write a real problem where referencing > > is really needed. > > I have one...: > [snap] > > There are loads of discussions about the code you wrote... but... isn't > ba

Re: image reduction script

2006-03-25 Thread Kamilche
To reduce the color depth of an image in PIL: im = im.convert(mode="P", palette=Image.ADAPTIVE) -- http://mail.python.org/mailman/listinfo/python-list

Re: pondering about the essence of types in python

2006-03-25 Thread Steven Bethard
gangesmaster wrote: > but __mro__ is a readonly attribute, and deriving from instances is > impossible (conn.modules.wx.Frame is a PROXY to the class)... Maybe I'm misunderstanding, but why is an instance a proxy to a class? Why don't you make a class a proxy to the class? STeVe -- http://mail.

Re: MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Thanks Rune. I've already checked out Django and TG and have found both the projects to be a little misguided. I think the one great thing they have over Rails is the use of SQLObject because the implicit mapping of data models via the "plural" approach of Rails is a bit of a quirk to me, I just do

[ANN] InformixDB-2.2 released

2006-03-25 Thread Carsten Haese
I am pleased to announce a new release of InformixDB, the DB-API 2.0 module for connecting to IBM Informix database engines. Changes since version 2.1: - Support for BOOLEAN columns - DECIMAL and MONEY columns can be fetched as decimal.Decimal instances if the decimal module is available - auto

Re: Accessing func_name from inside a function

2006-03-25 Thread Alex Martelli
Ben Finney <[EMAIL PROTECTED]> wrote: > "James Thiele" <[EMAIL PROTECTED]> writes: > > > I'd like to access the name of a function from inside the function. > > A function, like most other objects in Python, can have any number of > names bound to it without the object being informed. Any of tho

adding a new line of text in Tk

2006-03-25 Thread nigel
Hello i have been working on an interactive programme,i wish to use a small amount of Tk.Which i have taken from a tutorial. from Tkinter import * root = Tk() w =Label(root, text="Congratulations you have made it this far,just a few more questions then i will be asking you some") w.pack() root.ma

<    1   2