[Biopython] Entrez.efetch issue with the returning data type

Peter Cock p.j.a.cock at googlemail.com
Wed Feb 29 17:45:14 UTC 2012


On Wed, Feb 29, 2012 at 5:40 PM, Karolis wrote:
> On Feb 29, 2012 11:34 AM, Peter wrote:
>> On Wed, Feb 29, 2012 at 1:57 PM, Karolis wrote
>> > I see, you can never make everyone happy. Thanks.
>>
>> Sadly true of many things in life.
>>
>> However, in this particular case, encouraging people to be
>> explicit and provide their desired EFetch retmode/rettype is
>> not only a practical solution, but also very Pythonic:
>>
>> Zen Of Python: Explicit is better than implicit.
>> http://www.python.org/dev/peps/pep-0020/
>>
>> Peter
>
> I agree, reading their code after a few weeks of writing it, most people
> would not remember what implicit settings they relied on.

I suppose we could add a warning if the retmode or rettype is not
set explicitly. Maybe we should have done it for Biopython 1.59?
It would have got people's attention and given them a big clue
about how their EFetch script might have been broken by the
recent NCBI change.

Peter



More information about the Biopython mailing list