#NEWLINE# def nearIntegersPredicate( field ) : #NEWLINE# #INDENT# 'return any integers N, N+1, and N-1' #NEWLINE# ints = integers ( field ) #NEWLINE# near_ints = set ( ints ) #NEWLINE# for char in num : #NEWLINE# #INDENT# num = int ( char ) #NEWLINE# near_ints . add ( str ( ( num - 1 ) ) ) #NEWLINE# near_ints . add ( str ( ( num + 1 ) ) ) #NEWLINE# #UNINDENT# return near_ints