Comment on Python bug: Can assign [] = (), but not () = []Comments−squigs2511y() is not a tuple. (a,b) is a tuple or (a,) would also be a tuple.−bpicolo11yIt's an empty tuple.stuff = ()print(type(stuff))<class 'tuple'>
Comments
() is not a tuple. (a,b) is a tuple or (a,) would also be a tuple.
It's an empty tuple.
stuff = ()
print(type(stuff))
<class 'tuple'>