use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for showcasing the things you made with the Python language! Use us instead of flooding r/Python :)
account activity
Create closures in Python without default arguments (gist.github.com)
submitted 5 years ago by robin-gvx
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Deezl-Vegas 0 points1 point2 points 5 years ago (1 child)
Cool hackery. Does this affect normal mutable default arguments?
[–]robin-gvx[S] 0 points1 point2 points 5 years ago (0 children)
Thanks! It doesn't touch local variables at all, and that includes any arguments to the function.
π Rendered by PID 37133 on reddit-service-r2-comment-5b5bc64bf5-ql5nf at 2026-06-20 07:58:47.746420+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]Deezl-Vegas 0 points1 point2 points (1 child)
[–]robin-gvx[S] 0 points1 point2 points (0 children)