Re: Check file is

2008-12-20 Thread gardsted
Harish wrote: Hi Friends Is there any utility in python which will help me to read any pdf files? Regards Harish Not sure, what you're after exactly, but I tried googling 'python read pdf' and found this, so maybe 'reportlab' is what you're looking for: Re: Reading PDF files #2 Dec 20th,

Re: How to make money with Python!

2008-11-03 Thread gardsted
Grant Edwards wrote: On 2008-10-31, Duncan Booth [EMAIL PROTECTED] wrote: If that subject line didn't trip everyone's killfiles, see http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html for a fantastic story involving Python. Doh! The very clever pun went right

Re: regular expression

2007-11-19 Thread gardsted
The retarded cousin - that's me! I keep getting confused by the caret - sometimes it works - sometimes it's better with backslash-n Yes - retarded cousin, I guess. The file format is a config-track for a multitrack recording software, which i need to automate a bit. I can start it from the

Re: regular expression

2007-11-19 Thread gardsted
Paul McGuire wrote: Sorry about your coffee cup! Would you be interested in a pyparsing rendition? -- Paul from pyparsing import * def defineGrammar(): ParserElement.setDefaultWhitespaceChars( \t) ident = Word(alphanums+_) LT,GT = map(Suppress,) NL =

regular expression

2007-11-18 Thread gardsted
I just can't seem to get it: I was having some trouble with finding the first REAPER_PROJECT in the following with this regex: Should these two approaches behave similarly? I used hours before I found the second one, but then again, I'm not so smart...: kind retards jorgen / de mente using

Re: regular expression

2007-11-18 Thread gardsted
Ups - got it - there are no flags in finditer;-) So rtfm, once again, jorgen! gardsted wrote: I just can't seem to get it: I was having some trouble with finding the first REAPER_PROJECT in the following with this regex: Should these two approaches behave similarly? I used hours before I

Re: readline support on openSuSE

2007-10-17 Thread gardsted
Milos Prudek wrote: This question concerns compilation of Python from sources. Specifically Python 2.3.6. On Kubuntu 7.04, ./configure outputs these lines about readline: checking for rl_pre_input_hook in -lreadline... yes checking for rl_completion_matches in -lreadline... yes On

Re: Mysql class works like php

2007-10-07 Thread gardsted
Bruno Desthuilliers wrote: Andrey a écrit : Hi just a quick question about using MySQL module... are there any api / class available to give a higher level in working with Mysql in python? such as db.fetch_array(), db.fetch_rows(), db.query(), for eachrow in db.fetch_array():