#NEWLINE# def set_max_id( self , twid ) : #NEWLINE# #INDENT# " Sets 'max_id' parameter used to return only results         with an ID less than (that is, older than) or equal to the specified ID\n\n        :param twid: A valid tweet ID in either long (Py2k)         or integer (Py2k + Py3k) format\n        :raises: TwitterSearchException\n        " #NEWLINE# if py3k : #NEWLINE# #INDENT# if ( not isinstance ( twid , int ) ) : #NEWLINE# #INDENT# raise TwitterSearchException ( 1004 ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isinstance ( twid , ( int , long ) ) ) : #NEWLINE# #INDENT# raise TwitterSearchException ( 1004 ) #NEWLINE# #UNINDENT# #UNINDENT# if ( twid > 0 ) : #NEWLINE# #INDENT# self . arguments . update ( { #NEWLINE# #INDENT# 'max_id' : ( '%s' % twid ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TwitterSearchException ( 1004 )