This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
def hello(): | |
print "Hello, World!" | |
def main(): | |
my_list = [("This is what I want to check for", hello), | |
("But it will also validate built-ins", isinstance), | |
["Let's use an array for good measure", lambda x: x]] | |
# my_list = ["Must be 'list' or 'tuple', so this raises an error"] |