Re: [Tutor] exit handler for C extension module

2010-01-18 Thread Shuying Wang
I found what I was after, right after I posted to this list. It's Py_AtExit. I'm accessing an old, unsupported database using it's C API. I've tried using Cython but found it hard to get my head around and I'm finding it somewhat easier to just write by hand. On Mon, Jan 18, 2010 at 6:40 PM, Stefa

Re: [Tutor] adding more text to a file

2010-01-18 Thread wesley chun
On Sun, Jan 17, 2010 at 5:19 PM, Alan Gauld wrote: > > "Magnus Kriel" wrote > >> It might be that when you create a file for the first time with 'a', that >> it >> will through an exception. So you will have to try with 'w', and if there >> is >> an exception, you know the file does not exist and

Re: [Tutor] exit handler for C extension module

2010-01-18 Thread Stefan Behnel
Shuying Wang, 18.01.2010 08:58: > I found what I was after, right after I posted to this list. It's > Py_AtExit. I'm accessing an old, unsupported database using it's C > API. I didn't write the respective code in Cython, but there's a comment next to it saying /* Don't use Py_AtExit because

Re: [Tutor] smtp project

2010-01-18 Thread Adam Bark
2010/1/17 Kirk Z Bailey > I am writing a script that will send an email message. This will run in a > windows XP box. The box does not have a smtp server, so the script must > crete not merely a smtp client to talk to a MTA, it must BE one for the > duration of sending the message- then shut off,

Re: [Tutor] smtp project

2010-01-18 Thread Kent Johnson
On Sun, Jan 17, 2010 at 9:57 PM, Kirk Z Bailey wrote: > There is no smtp server available, these are the cards I am delt; can you > advise on how to play them? A couple of possibilities: - I'm no expert on SMTP but don't the MTAs talk SMTP to each other on port 25? Could you use smtplib to talk

Re: [Tutor] adding more text to a file

2010-01-18 Thread Modulok
If you're using this as an interactive command to help you populate a database, as you appear to be, don't open the file more than once. As previously suggested you should also put all your strings together and then write them to the database in one go. I don't know if you've thought about this ye

[Tutor] Python workspace - IDE and version control

2010-01-18 Thread galaxywatcher
I want to share a couple of insights that I had getting started with Python that I did not come across in the literature all that often. I am discovering that there are two primary supporting tools needed in order to create an efficient and productive Python programming workspace: IDE and V

Re: [Tutor] Python workspace - IDE and version control

2010-01-18 Thread Alan Gauld
wrote order to create an efficient and productive Python programming workspace: IDE and Version Control. Both important, although an IDE is perhaps a generous description of vim! :-) Obviously, no tool can think for you. The real programming work of course is going on in your brain. I am c

Re: [Tutor] Python workspace - IDE and version control

2010-01-18 Thread Matthew Lee
I usually just use NetBeans or the Python IDLE. I prefer to use NetBeans because it's easier to change and modify code and test. And also because I like to use Jython. Anything wrong with my setup? On Tue, Jan 19, 2010 at 8:17 AM, Alan Gauld wrote: > > wrote > > > order to create an efficient

Re: [Tutor] Python workspace - IDE and version control

2010-01-18 Thread Alan Gauld
"Matthew Lee" wrote I usually just use NetBeans or the Python IDLE. I prefer to use NetBeans because it's easier to change and modify code and test. And also because I like to use Jython. Anything wrong with my setup? If it works for you then its fine. IDEs, editors etc are all very perso

Re: [Tutor] Python workspace - IDE and version control

2010-01-18 Thread muhamed niyas
I am using Netbeans, it has many features. The following IDEs i used before Netbeanse Anjuta, Komodo, python IDLE, etc.. There is a python plugin in Netbease and also it has subversion integrated. On Tue, Jan 19, 2010 at 5:59 AM, Alan Gauld wrote: > > "Matthew Lee" wrote > > > I usually just

[Tutor] Contribution to Opensource

2010-01-18 Thread nikunj badjatya
Hi, I recently joined this mailing list so as to improve my knowledge on Python. Its been 4 months I am using Python. So I decided to contribute to any Open source project. Can you help me on how to proceed on this, Whom to contact etc. Thanks, Nikunj Badjatya BTech Bangalore, India