Re: add encoding to standard encodings works different in python 2.5?

2006-12-29 Thread Henk-Jan Ebbers
OK, I am trying to register my codecs, with codecs.register Looking at the python doc, this seems to work different in 2.4/2.5 Can somebody help me with an example of how to register a codec? I do not understand how this works. regards, Henk-jan -- http://mail.python.org/mailman/listinfo/python-

Re: INSERT statements not INSERTING when using mysql from python

2006-12-29 Thread Ben
Well that's odd... If I place the exact same Insert statement elswhere in the program it works as intended. That would suggest it is never being run in its old position, but the statements either side of it are printing... Ben wrote: > I don't know whether anyone can help, but I have an odd prob

INSERT statements not INSERTING when using mysql from python

2006-12-29 Thread Ben
I don't know whether anyone can help, but I have an odd problem. I have a PSP (Spyce) script that makes many calls to populate a database. They all work without any problem except for one statement. I first connect to the database... self.con = MySQLdb.connect(user=username, passwd =password) sel

Re: Reverse of SendKeys??

2006-12-29 Thread Sebastian 'lunar' Wiesner
"Erik Johnson" <> typed > Aside from the obvious security issues such a program would > represent (and your name and signature are curious in that respect as > well), you are basically asking for functionality (i.e., a key logger) > I believe to be outside what is offered by Python and/or the API

Re: Convert Perl to Python

2006-12-29 Thread Emilio Sañudo
http://www.crazy-compilers.com/bridgekeeper/ ?? wrote: > How can I convert a perl script to Python? > > Thank you! > -- http://mail.python.org/mailman/listinfo/python-list

Re: db access

2006-12-29 Thread king kikapu
Hi Johnf, are you referring to this ? http://www.freetds.org/ And how i can get psmssql.py so i can get a shot on it, is it included in FreeTDS ?? On Dec 29, 12:12 am, johnf <[EMAIL PROTECTED]> wrote: > king kikapu wrote: > > Hi to all, > > > is there a way to use an RDBMS (in my case, SQL Se

Re: Starting a child process and getting its stdout?

2006-12-29 Thread Tom Plunket
Tom Plunket wrote: > while p.poll() == None: > data = p.stdout.readline() > if data: > print data, If you change that print to something more decorated, like, print 'process said:', data, Then it might be more obvious where/how the prin

Re: Starting a child process and getting its stdout?

2006-12-29 Thread Tom Plunket
cypher543 wrote: > This has been driving me insane for the last hour or so. I have search > everywhere, and nothing works. I am trying to use the subprocess module > to run a program and get its output line by line. But, it always waits > for the process to terminate and then return the output all

Re: Convert Perl to Python

2006-12-29 Thread Tim Daneliuk
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, > Χρυσάνθη Αϊναλή wrote: > >> How can I convert a perl script to Python? > > Look what the Perl script does and then rewrite it in Python. Automatic > translations between programming languages, if possible, usually result in > code that

Re: Convert Perl to Python

2006-12-29 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Χρυσάνθη Αϊναλή wrote: > How can I convert a perl script to Python? Look what the Perl script does and then rewrite it in Python. Automatic translations between programming languages, if possible, usually result in code that is not supposed to be read by human beings. Ev

Re: A stupid question

2006-12-29 Thread Tom Plunket
luxnoctis wrote: > It says exactly: > > The specified module could not be found. > LoadLibrary(pythondll) failed > > Don't know if that helps at all. There's something installed on Compaq computers that uses the Python stuff too, but I never figured out what it was. I figured it may have been

Re: how to serve image files without disk use?

2006-12-29 Thread Tom Plunket
Ray Schumacher wrote: > But, how can I avoid disk writes? wx's *.SaveFile() needs a string > file name (no objects). > I'm going to investigate PIL's im.save(), as it appears to allow > file-objects. Take a look at the img2*.py files in wx.tools. They're sorta sketchy imo, but they do the tric

Kurukshetra Online Programming Contest

2006-12-29 Thread ravehanker
Hello There! College of Engineering, Guindy announces the Kurukshetra Online Programming Contest as a part of it's Inter-departmental Tech. Fest, Kurukshetra. The event is your opportunity to compete with the World's best coders with algorithm-centric problems that will rattle your grey matter! T

<    1   2