wtfpython
wtfpython copied to clipboard
Found a small problem
I noticed the following sentence in your article .
[] = () is a semantically correct statement (unpacking an empty tuple into an empty list)
according to the python documentation, the [] on the left of the equal sign looks like a list, but it's not.
del [a,b,c]
or
del (a,b,c)
Similarly, the [a,b,c] that follows the del is not a list neither.
[]=() ()=[] []=()="" []=()={}
according to the python documentation, the [] on the left of the equal sign looks like a list, but it's not.
Interesting, can you share the relevant parts of the documentation