We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
Thank you, I've updated the playground.
I didn't know defaultdict ... really useful !
Thanks, this was very interesting!
This was really great. I didn't know about the one line `tree()` hack, or the decorators `@contextmanager` or `@lru_cache`. Also, with the `@contextmanager` example, it may be more clear to add comments like this. (However, I understood it just fine, so I don't know if I am being to nitpicky.)
print("\033[%sm" % color, end="") # lines before the yield associated with __enter__ method
print("\033[0m", end="") # lines after the yield associated with __exit__ method
You're right, a comment can be helpful. I've added your suggestion.
Tx, many thing I did not known
its all true but how long have you guys known this "stuff" hu i know But we are all geting trolled by you know what never mind we already said too much bye BANNED TIK TOK
hi guys how would you guys know that this is true
Thanks for these demos! Really handy stuff, quite a few new things for me!
Unpacking arguments example - it is more precise if args(line 6) is a tuple instead of a list.
Very very nice! :D
Thank you very much for your course!
I was especially amazed by the defaultdict tree and the cache decorator !
Nice job, the examples are well chosen.
I would suggest that
args2should be renamed
kwargsfor consistency in "unpacking arguments":