#NEWLINE# def seek( self , offset , whence = SEEK_SET ) : #NEWLINE# #INDENT# ' Seek to the specified offset.\n            /whence/ behaves as with other file-like objects:\n                http://docs.python.org/lib/bltin-file-objects.html\n        ' #NEWLINE# if ( whence == SEEK_SET ) : #NEWLINE# #INDENT# self . offset = offset #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( whence == SEEK_CUR ) : #NEWLINE# #INDENT# self . offset += offset #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( whence == SEEK_END ) : #NEWLINE# #INDENT# self . offset = ( self . length + offset )