Re: please help shrink this each_with_index() implementation

2010-01-05 Thread akean
On Jan 6, 8:58 am, Phlip wrote: > Hypo Nt: > > def each_with_index(seq): >     index = 0 >     result = [] > >     for item in seq: >       result.append([item, index]) >       index += 1 > >     return result > > My Pythonic sequencing skills are obviously feeble. Can anything think > of a way to

Re: plain text parsing to html (newbie problem)

2009-12-09 Thread akean
On Dec 10, 3:59 am, João wrote: > I apologize for my newbiness but I'm banging my head making this work : > ( ... > How can I see the output run in debug mode like in perl? > One method: install ipython (another python shell, but with some useful extra features) and then run the program inside