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

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

src/b/i/biopython-1.63/Tests/test_File.py   biopython(Download)
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'
 
# Test readlines after saveline
h.saveline("saved again")
print(repr(h.readline()))       # ''
 
h.saveline("save after empty")
print(h.readline())             # 'save after empty'
print(repr(h.readline()))       # ''
 
# test read method
h = File.UndoHandle(StringIO("some text"))
h.saveline("more text")

src/b/i/biopython-HEAD/Tests/test_File.py   biopython(Download)
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'
 
# Test readlines after saveline
h.saveline("saved again")
print(repr(h.readline()))       # ''
 
h.saveline("save after empty")
print(h.readline())             # 'save after empty'
print(repr(h.readline()))       # ''
 
# test read method
h = File.UndoHandle(StringIO("some text"))
h.saveline("more text")

src/b/i/biopython-1.63/Tests/test_ParserSupport.py   biopython(Download)
else:
    print("ERROR, should have failed")
h.saveline('hello')
print(safe_peekline(h)) # 'hello'
 

src/b/i/biopython-HEAD/Tests/test_ParserSupport.py   biopython(Download)
else:
    print("ERROR, should have failed")
h.saveline('hello')
print(safe_peekline(h)) # 'hello'