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, 20

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 p

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,"<>") >

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 comm

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 following with this regex: > > Should these two approaches behave similarly? > I used hours befor

regular expression

2007-11-18 Thread gardsted
I just can't seem to get it: I was having some trouble with finding the first > > """ print "The First approach - flags in finditer" rex = re.compile(r'^<(?P[a-zA-Z0-9_]*)') for i in rex.finditer(TESTTXT,re.MULTILINE): print i,i.groups() print "The Second approach - flags in pa

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 >

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_a