I have found something like this in a code I'm working with:
[], my_variable = my_function(a, b)
where the output of my_function goes like:
return some_dict, some_list
This seems to work - unit tests of a system don't fail, but when I try this at the python console (assigning dictionary to "[]") it raises:
ValueError: too many values to unpack
Have you seen something like this? How does assigning a dictionary (or something else) to empty list constant "[]" work?
Or it doesn't and tests are missing something...