blakeembrey/code-problems — pull request #114 by megawac (2014-04-30 02:22:13+00:00)
Title: Add python throttle and decorator

```python
from throttle import *

@throttled(500)
def printer(time, name="Matt", **kwargs):
print "Hello {name} it is {0}. {message}".format(time, name=name, **kwargs)

printer(5, message="How are you?")
printer(12, name="Jess", message="Hungry?")
> Hello Jess it is 12. Hungry?

@throttled(1000, True)
def printer(time, name="Matt", **kwargs):
print "Hello {name} it is {0}. {message}".format(time, name=name, **kwargs)

printer(5, message="How are you?")
printer(12, message="Hungry")
> Hello Matt it is 5. How are you?
```