I created a video on why you should be careful when using Python dictionaries as function parameter
This talks about mutability as Changes inside a function affect the original dictionary which could lead to unexpected behaviors and hard to debug issues.
Here is a link to the video
https://www.youtube.com/watch?v=zTTDQePffxU
/r/Python
https://redd.it/1d9upsj
This talks about mutability as Changes inside a function affect the original dictionary which could lead to unexpected behaviors and hard to debug issues.
Here is a link to the video
https://www.youtube.com/watch?v=zTTDQePffxU
/r/Python
https://redd.it/1d9upsj
YouTube
Avoid Using Python Dictionaries as Default Parameter in Functions! Here's Why...
Are you using Python dictionaries as default parameters? Avoid it! 🚫 This common mistake can lead to unexpected bugs and hard-to-trace errors in your code. In this video, I break down the dangers of using mutable default arguments, especially dictionaries…