[Biopython-dev] Error in Bio.Entrez.__init__

Peter Cock p.j.a.cock at googlemail.com
Mon Nov 26 14:57:28 UTC 2012


On Mon, Nov 26, 2012 at 2:48 PM, Maurice Ling <mauriceling at gmail.com> wrote:
> Hi
>
> I am setting an error running this:
>
> from Bio import Entrez
> from Bio import Medline
> handle = Entrez.efetch(db="pubmed", id=[19300000], rettype="medline",
> retmode="text")
>

I would have used this:

Entrez.efetch(db="pubmed", id=["19300000"], rettype="medline", retmode="text")

In general the NCBI identifiers are arbitrary strings, although
perhaps the pubmed identifiers could be treated as integers.
This is perhaps worth changing in the Bio.Entrez code...

What do you think Michael?

Peter



More information about the Biopython-dev mailing list