I found something like this in the code I'm working with:
[], my_variable = my_function(a, b)
where the output of my_function is as follows:
return some_dict, some_list
It seems to work - unit system tests don't crash, but when I try this in the python console (assigning the dictionary â[]â), it raises:
ValueError: too many values to unpack
Have you seen something like this? How to assign a dictionary (or something else) to remove the list constant "[]" to work?
Or is it not, and the tests are missing something ...
source share