Type 'tuple' doesn't have expected attribute '__setitem__'

已回答

Check out the following snippet:

Why am I getting a warning there when I am doing exactly the same than in the loop above? I don't know what this warning is about or the reason it is being displayed. I have had this kind of trouble with tuples before.

0

Hi Pablo. Sorry for such a late reply.

 

Could you please clarify what type "rnd" expression has in this fragment and how "create_major_stage_match()" is defined? Tuple type indeed doesn't define "__setitem__", and it's difficult to figure out what's wrong here without additional information, because in some cases it can be a perfectly legit warning.

For example:





0

请先登录再写评论。