Re:

2009-06-02 Thread Teguh Iskanto
how about this : - dump those data with sort enabled - use diff to those two dumps , eg: diff dump_a dump_b if you don't know what diff is , try : man diff HTH On Tue, Jun 2, 2009 at 2:50 AM, Kiran Siddiqui wrote: > hi have to parse a very complex dumps(whatever it is), i have done the > par

Re: How does Python's OOP feel?

2009-05-30 Thread Teguh Iskanto
On Sat, May 30, 2009 at 2:50 PM, Benjamin Kaplan wrote: > > > On Fri, May 29, 2009 at 9:41 PM, Lie Ryan wrote: > >> Ikon wrote: >> > I'm rather new to Python. I have PHP for my main language and I do >> > some Java. They all have a very strict OO schema. As I red through >> > Python's tutorial i

Re: DB-API execute params, am I missing something?

2009-05-28 Thread Teguh Iskanto
On Fri, May 29, 2009 at 3:21 PM, Dennis Lee Bieber wrote: > >This won't work as the DB-API is going to quote the parameter, and > the final result would be '%'whatever'%'. Essentially, you must put the > wildcard marker on the actual parameter before feeding it to the API. > -- >Wu

Re: extract to dictionaries

2009-05-28 Thread Teguh Iskanto
You can create this modularly by : 1. parse the file and cut this into different chunks ( look for 'end' ) then you have two chunks for param 1 & 2 2. once you have those chunks then process each chunk with your own processing based on your parameters ( 1 or 2 ) 3. then based on your individual par

Re: DB-API execute params, am I missing something?

2009-05-27 Thread Teguh Iskanto
On Thu, May 28, 2009 at 11:12 AM, Lawrence D'Oliveiro wrote: > In message <784h2cf1kem0...@mid.uni-berlin.de>, Diez B. Roggisch wrote: > > > Lawrence D'Oliveiro wrote: > > > >> In message , Dennis > >> Lee Bieber wrote: > >> > >>> Notice that db.literal() call? That's part of the mechanism used t

Re: What text editor is everyone using for Python

2009-05-26 Thread Teguh Iskanto
Have you tried vim ? it has got tons of tons of features, like ( just to name a few) : file manager, color syntax, tab screen, command/syntax completion (cache only) , vertical split, horizontal split, colorful diffing, create a patch, etc .. you name it !! . There's also plugins / script that pe

Re: How does Python's OOP feel?

2009-05-26 Thread Teguh Iskanto
Ikon wrote: >I'm rather new to Python. I have PHP for my main language and I do >some Java. They all have a very strict OO schema. As I red through >Python's tutorial it seams it has nothing of those rules. No statical, >abstract classes, functions, or variables. > >I wish someone, who has experien