Authorizing a twitter-bot

So last night I ran into a small issue, how to authorize a twitter bot to use an application without stubbing together a website and logging in with the bot account?  The answer, this little script using twython: import twython app_key = raw_input("Your app key: ") app_secret = raw_input("Your app…

The Python "in" Operator – Theoretical vs Actual Time Complexity

Background Sometimes we may generate or retrieve a list, set or even dict when creating collection of things that we will be testing against.  Theoretically a set, frozenset or dictionary should be the fastest (and equivalent) forms of storage for this operation.  However, what I've found is that on some…