Tuesday, October 22, 2013
In python, [] and {} are dangerous default values
In python, [] and {} are dangerous default values as noted at
stackoverflow
. A simple work around is to have query_args=None then do
query_args = query_args or {}
in the function code.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment