Re: Rewriting Recipe/410687 without map and lambda

2007-12-12 Thread sofeng
On Dec 11, 8:29 pm, Terry Reedy [EMAIL PROTECTED] wrote: sofeng [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |I would like to use the following recipe to transpose a list of lists | with different lengths.http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410687 | | Here

Rewriting Recipe/410687 without map and lambda

2007-12-11 Thread sofeng
=211200), Guido says not to use map with lambda because a list comprehension is clearer and faster. How can I rewrite the above recipe using a list comprehension instead? -sofeng -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing HTML

2007-02-23 Thread sofeng
On Feb 8, 11:43 am, metaperl [EMAIL PROTECTED] wrote: On Feb 8, 2:38 pm, mtuller [EMAIL PROTECTED] wrote: I am trying to parse a webpage and extract information. BeautifulSoup is a great Python module for this purpose: http://www.crummy.com/software/BeautifulSoup/ Here's an article on