2 ms·
Python is my go to language but there are a lot of these little hang ups you only know about once you’ve pulled your hair out. I don’t know if this is one tech
by edgyquant 5y ago
Python is my go to language but there are a lot of these little hang ups you only know about once you’ve pulled your hair out. I don’t know if this is one technically though, function definitions are set at interpretation so I think the result here is pretty straightforward even if it’s a hang up for some people.
- jrib 5y agoI always point people here for a decent write-up of some "gotchas": https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments https://docs.python-guide.org/writing/gotchas/#mutable-defau... . What is your list of "these little hang ups you only know about once you’ve pulled your hair out" if you don't mind sharing?