Re: Hotshoting recursive function

2011-05-26 Thread Selvam
On Wed, May 25, 2011 at 2:20 PM, Gabriel Genellina gagsl-...@yahoo.com.arwrote: En Sun, 22 May 2011 10:42:08 -0300, Selvam s.selvams...@gmail.com escribió: I am using hotshot module to profile my python function. I used the details from ( http://code.activestate.com/recipes/576656

Hotshoting recursive function

2011-05-22 Thread Selvam
Hi, I am using hotshot module to profile my python function. I used the details from ( http://code.activestate.com/recipes/576656-quick-python-profiling-with-hotshot/ ). The function I profile is a recursive one and I am getting the following error, ProfilerError: profiler already active I

Re: Generate PDF with Tamil font problem

2011-03-08 Thread Selvam
On Sat, Mar 5, 2011 at 5:28 PM, Tom Zych freethin...@pobox.com wrote: sathe...@e-ndicus.com wrote: I am using python's reportlab to print some unicode Tamil characters '#2986;#3015;'. I added necessary unicode font to reportlab. But It prints the output as '#3015;#2986;' (in reverse

Beautifulsoup html parsing - nested tags

2011-01-05 Thread Selvam
Hi all, I am trying to parse some html string with BeatifulSoup. The string is, table colWidths='530.0' style='Table_Main_Table' tr td blockTable colWidths='54.0,80.0,67.0' style='Table_Tax_Header' tr th p

Re: Beautifulsoup html parsing - nested tags

2011-01-05 Thread Selvam
On Wed, Jan 5, 2011 at 2:58 PM, Selvam s.selvams...@gmail.com wrote: Hi all, I am trying to parse some html string with BeatifulSoup. The string is, table colWidths='530.0' style='Table_Main_Table' tr td blockTable colWidths='54.0,80.0,67.0' style

Removing an attribute from html with Regex

2010-12-29 Thread Selvam
Hi all, I have some HTML string which I would like to feed to BeautifulSoup. But, One malformed attribute breaks BeautifulSoup. p style='terp_header' wrong_tag=' text1 ' text2 ' and 'para' ' class='terp_header' My String/p I would like it to replace all the occurances of that attribute