#NEWLINE# def getByReference( self , ref ) : #NEWLINE# #INDENT# '\n        Returns an object based on the supplied reference. The C{ref} should\n        be an C{int}.\n\n        If the reference is not found, C{None} will be returned.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . list [ ref ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# return None