Tivix / django-cron

Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
www.tivix.com
MIT License
900 stars 193 forks source link

avoid mutable default argument value #40

Closed bronsen closed 9 years ago

bronsen commented 10 years ago

Do not use "[]" as a default argument value because it is mutable; instead use a workaround described both here https://docs.python.org/3.4/tutorial/controlflow.html#default-argument-values and here https://docs.python.org/2.7/tutorial/controlflow.html#default-argument-values under "Important warning".

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.04%) when pulling 253eef79f390ff08f79cb7e8dec484d4070e17eb on bronsen:patch-1 into f8c840c70e8cf58565da0325d685fea3687fc40c on Tivix:master.