[Biopython-dev] [Biopython] Using SeqLocation to extract subsequence

Kyle Ellrott kellrott at gmail.com
Tue Nov 3 18:17:44 UTC 2009


>
> >> def FeatureDescGuess( feature ):
> >>   return feature.qualifiers.get('product', [""])[0]
> >>
> >> and therefore doesn't really need an entire function.
> >
> > That could attempt to get the first element of a None type, if the
> 'product'
> > qualifier doesn't exist.
>
> No, because we supply a default value (a list containing the empty string).
>

Didn't see that.  That's what I get for programming during a colloquium ;-)

Kyle



More information about the Biopython-dev mailing list