Re: How to swallow traceback message

2010-08-11 Thread Eknath Venkataramani
step by step. But when I try to exit it, normally I use Ctrl+ C key to quit it. Problem is every time I do like it, it shows Traceback message and it makes my app not professional. How do I handle it gracefully. TIA -- http://mail.python.org/mailman/listinfo/python-list -- Eknath

Re: I need a starter ptr writing python embedded in html.

2010-08-08 Thread Eknath Venkataramani
if this weren't a hypothetical question? steveo at syslang.net -- http://mail.python.org/mailman/listinfo/python-list -- Eknath Venkataramani -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiline regex

2010-07-21 Thread Eknath Venkataramani
easy on the eye too, if you know what I mean. I'm wanting to grab the information out in chunks, so -- Eknath Venkataramani -- http://mail.python.org/mailman/listinfo/python-list

Re: Replace in large text file ?

2010-06-06 Thread Eknath Venkataramani
On Sat, Jun 5, 2010 at 1:23 PM, Steve vvw...@googlemail.com wrote: Remove all comma's Replace all @ with comma's Save as a new file. Why don't you use 'sed'. It'd be way faster -- Eknath Venkataramani -- http://mail.python.org/mailman/listinfo/python-list

extracting unicode text from pdfs

2010-05-24 Thread Eknath Venkataramani
symbols: '... ...' while i'd like 'आदमी मुसाफिर है' to be the output -- Eknath Venkataramani -- http://mail.python.org/mailman/listinfo/python-list

pyparsing wrong output

2010-02-12 Thread Eknath Venkataramani
I am trying to write a parser in pyparsing. Help Me. http://paste.pocoo.org/show/177078/ is the code and this is input file: http://paste.pocoo.org/show/177076/ . I get output as: generator object at 0xb723b80c * * -- Eknath Venkataramani +91-9844952442 -- http://mail.python.org/mailman/listinfo

which data structure should I use?

2010-01-14 Thread Eknath Venkataramani
I have a txt file in the following format: [code] confident = { count = 4, trans = { ashahvasahta = 0.74918568, atahmavaishahvaasa = 0.09095465, pahraaram\.nbha = 0.06990729, mailatae = 0.02856427, utanai = 0.01929341, anaa = 0.01578552,

Python File Search

2010-01-11 Thread Eknath Venkataramani
correct.txt snippet: 1 2 1 1 3 3 1 5 21 1 7 19 union_output_TEMP.txt snippet: 1 2 1_NN 1 3 3_VBZ 1 3 5_VBZ 1 3 2_VBZ 1 5 21_VB 1 7 19_NN 1 9 14_VB I need to get the output in categorized.txt as: NN={1 7 19, 1 2 1} VBZ={1 3 3} VB={1 5 21} in python. Kindly help 1 2 1 1 3 3 1 5 21 1 7 19 1 10 13