Re: string contains and special characters

2012-10-09 Thread Agon Hajdari
: > > Do I need to escape the characters...and if so how? > if '' in yourstring: # your code -- Agon Hajdari -- http://mail.python.org/mailman/listinfo/python-list

Re: Insert item before each element of a list

2012-10-08 Thread Agon Hajdari
On 10/08/2012 11:15 PM, Prasad, Ramit wrote: > Agon Hajdari wrote: >> Sent: Monday, October 08, 2012 3:12 PM >> To: python-list@python.org >> Subject: Re: Insert item before each element of a list >> >> On 10/08/2012 09:45 PM, Chris Kaynor wrote: >>> [(&#

Re: Insert item before each element of a list

2012-10-08 Thread Agon Hajdari
On 10/08/2012 09:45 PM, Chris Kaynor wrote: > [('insertme', i) for i in x] This is not enough, you have to merge it afterwards. y = [item for tup in y for item in tup] -- http://mail.python.org/mailman/listinfo/python-list

Re: lpod-python

2012-08-12 Thread Agon Hajdari
On Fri, 10 Aug 2012 19:37:16 +0200, Francesco wrote: > I'm trying to use the lpod-python module to programmatically read data > from Open Document files. My problem is: i can't download the module > from its authors' site, > http://download.lpod-project.org/lpod-python/lpod-python-0.9.3.tar.gz. >