Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/b/i/biopython-HEAD/Bio/SeqIO/InsdcIO.py   biopython(Download)
from Bio import SeqFeature
 
from Bio._py3k import _is_int_or_long
from Bio._py3k import basestring
 
        if quote is None:
            #Try to mimic unwritten rules about when quotes can be left out:
            if _is_int_or_long(value) or key in self.FTQUAL_NO_QUOTE:
                quote = False
            else:

src/b/i/biopython-1.63/Bio/SeqIO/InsdcIO.py   biopython(Download)
from Bio import SeqFeature
 
from Bio._py3k import _is_int_or_long
from Bio._py3k import basestring
 
        if quote is None:
            #Try to mimic unwritten rules about when quotes can be left out:
            if _is_int_or_long(value) or key in self.FTQUAL_NO_QUOTE:
                quote = False
            else:

src/b/i/biopython-HEAD/BioSQL/Loader.py   biopython(Download)
from Bio.Seq import UnknownSeq
 
from Bio._py3k import _is_int_or_long
from Bio._py3k import range
from Bio._py3k import basestring
            #Use recursion to find out the taxon id (database key) of the parent.
            parent_taxon_id = self._get_taxon_id_from_ncbi_lineage(taxonomic_lineage[:-1])
            assert _is_int_or_long(parent_taxon_id), repr(parent_taxon_id)
        else:
            parent_taxon_id = None

src/b/i/biopython-1.63/BioSQL/Loader.py   biopython(Download)
from Bio.Seq import UnknownSeq
 
from Bio._py3k import _is_int_or_long
from Bio._py3k import range
from Bio._py3k import basestring
            #Use recursion to find out the taxon id (database key) of the parent.
            parent_taxon_id = self._get_taxon_id_from_ncbi_lineage(taxonomic_lineage[:-1])
            assert _is_int_or_long(parent_taxon_id), repr(parent_taxon_id)
        else:
            parent_taxon_id = None

src/b/i/biopython-HEAD/Bio/Phylo/TreeConstruction.py   biopython(Download)
def _is_numeric(x):
    return _py3k._is_int_or_long(x) or isinstance(x, (float, complex))
 
class _Matrix(object):
    """A base class for distance matrix or scoring matrix that accepts