Comment Comment by mickeyp Yes but they are not equivalent. dict and list are factories; {} and [] are reified when the code is touched and then never reinitialised again. This catches out beginners and LLMs alike:https://www.inspiredpython.com/article/watch-out-for-mutable... parent mickeyp 1 year ago
https://www.inspiredpython.com/article/watch-out-for-mutable...