Scrap/JADEN IS MAD AT ME AUG 14 9 58/Super Clan Codes/Codes Form FD COOKIE!/Code Finder.txt
Richard Wright 5f35433c9b Scrap codes
2015-03-01 17:03:11 +00:00

12 lines
455 B
Text

def getmembers(object, predicate=None):
"""Return all members of an object as (name, value) pairs sorted by name.
Optionally, only return members that satisfy a given predicate."""
results = []
for key in dir(object):
value = getattr(object, key)
if not predicate or predicate(value):
results.append((key, value))
print key,value
results.sort()
return results
getmembers(messenger.send)