On Thu, Aug 5, 2010 at 10:07 AM, Vikram K wrote:
> Suppose i have this string:
> z = 'AT/CG'
>
> How do i get this list:
>
> zlist = ['A','T/C','G']
One solution, please verify:
def group_seq(seq):
seq_out = []
skip = 0
seq_len = len(seq)
for i,char in enumerate(seq):
if
Below answer from Navin if good one, to make it more complex :) you can use
>>> z
'AT/CG'
>>> re.split('[A-Z]/[A-Z]',z)
['A', 'G']
>>> re.search('[A-Z]/[A-Z]',z).group()
'T/C'
using these two you can get your answer
On Thu, Aug 5, 2010 at 10:15 AM, Navin Kabra wrote:
> On Thu, Aug 5, 2010 at 1
On Thu, Aug 5, 2010 at 10:07 AM, Vikram K wrote:
> Suppose i have this string:
> z = 'AT/CG'
>
> How do i get this list:
>
> zlist = ['A','T/C','G']
>
This is a very poorly specified question. And in absence of any information
about what exactly are the constraints on the input, and what is the
Suppose i have this string:
z = 'AT/CG'
How do i get this list:
zlist = ['A','T/C','G']
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers
On Wed, 2010-08-04 at 20:08 +0530, Vinay Shastry wrote:
> On 4 August 2010 16:30, Noufal Ibrahim wrote:
> > There isn't a PIL or an Imaging top level module in the PIL package.
> > http://www.pythonware.com/library/pil/handbook/
> >
> > If importing "Image" works, I think it's installed properly.
Vinay Shastry writes:
> On 4 August 2010 16:30, Noufal Ibrahim wrote:
>> There isn't a PIL or an Imaging top level module in the PIL package.
>> http://www.pythonware.com/library/pil/handbook/
>>
>> If importing "Image" works, I think it's installed properly.
>
>
> A lot of 3rd party apps/module
On 4 August 2010 16:30, Noufal Ibrahim wrote:
> There isn't a PIL or an Imaging top level module in the PIL package.
> http://www.pythonware.com/library/pil/handbook/
>
> If importing "Image" works, I think it's installed properly.
A lot of 3rd party apps/modules (plone for example) do "from PIL
law...@au-kbc.org writes:
>> On 4 August 2010 13:00, Kenneth Gonsalves wrote:
>>>
>>> thanks - I am an idiot! easy_install worked, I see the egg in
>>> site-packages,
>>> but import PIL, or import Imaging both fail.
>>
>> Does "import Image" work?
>>
>
> yes import Image works
[...]
There isn't
> On 4 August 2010 13:00, Kenneth Gonsalves wrote:
>>
>> thanks - I am an idiot! easy_install worked, I see the egg in
>> site-packages,
>> but import PIL, or import Imaging both fail.
>
> Does "import Image" work?
>
yes import Image works
___
BangPyp
On 4 August 2010 13:00, Kenneth Gonsalves wrote:
>
> thanks - I am an idiot! easy_install worked, I see the egg in site-packages,
> but import PIL, or import Imaging both fail.
Does "import Image" work?
If yes, easy_install and PIL don't work well with each other. For some
reason, PIL module is
On Wednesday 04 August 2010 09:18:13 akm wrote:
> > i686-2.6/_imaging.o
> > _imaging.c:76:20: error: Python.h: No such file or directory
>
> This error occurs due to absence of Python development libraries.
>
> $ sudo apt-get install python2.5-dev
>
> This will install development headers and no
11 matches
Mail list logo