Using double square brackets?
In a file using an older version of Python, I found the following piece of code:
PROP_UI_COMBO = 'Prop_UI_ComboBox'
PROP_UI_COMBO[[]] = [_[1], [x for x in range(-1, 10)] + [26, 28, 30]]
And I'm wondering what it means to install PROP_UI_COMBO[[]]
. What do the double brackets mean? Also, (I may be wrong) I believe this _[1]
is only a temporary list [x for x in range(-1, 10)]
. So, as my question, what is [[]]
for, and what is the equivalent in Python 3.4?
+3
source to share