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

All Samples(21)  |  Call(21)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Bio/UniGene/UniGene.py   biopython(Download)
        text = ''
        while True:
            line = uhandle.readline()
            line = string.strip( line )
            if( line == '' ):

src/b/i/biopython---popgen-HEAD/src/PopGen/FStat/__init__.py   biopython---popgen(Download)
            consumer.loci_name(loci_name)
 
        line = uhandle.readline()
        while line != '':
            line = line.rstrip()
            toks = line.split(' ')
            consumer.individual(toks[0], toks[1:])
            line = uhandle.readline()

src/b/i/biopython-HEAD/Tests/test_ParserSupport.py   biopython(Download)
 
print(safe_peekline(h)) # "This"
h.readline()
print(safe_peekline(h)) # "file"
h.readline()

src/b/i/biopython-HEAD/Tests/test_File.py   biopython(Download)
h = File.UndoHandle(StringIO(data))
 
print(h.readline())   # 'This'
print(h.peekline())   # 'is'
print(h.readline())   # 'is'
h.saveline("saved")
print(h.peekline())   # 'saved'
h.saveline("another")
print(h.readline())   # 'another'
print(h.readline())   # 'saved'
 
# should be empty now
print(repr(h.readline()))       # ''
 
h.saveline("save after empty")

src/b/i/biopython-1.63/Tests/test_ParserSupport.py   biopython(Download)
 
print(safe_peekline(h)) # "This"
h.readline()
print(safe_peekline(h)) # "file"
h.readline()

src/b/i/biopython-1.63/Tests/test_File.py   biopython(Download)
h = File.UndoHandle(StringIO(data))
 
print(h.readline())   # 'This'
print(h.peekline())   # 'is'
print(h.readline())   # 'is'
h.saveline("saved")
print(h.peekline())   # 'saved'
h.saveline("another")
print(h.readline())   # 'another'
print(h.readline())   # 'saved'
 
# should be empty now
print(repr(h.readline()))       # ''
 
h.saveline("save after empty")