[issue47155] Strange behavior on the tuple that includes list

2022-03-29 Thread Eric V. Smith
Eric V. Smith added the comment: There's also this StackOverflow question about it: https://stackoverflow.com/questions/38344244/tuples-operator-throws-exception-but-succeeds -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior

[issue47155] Strange behavior on the tuple that includes list

2022-03-29 Thread Eric V. Smith
Eric V. Smith added the comment: This is an FAQ: https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works -- nosy: +eric.smith ___ Python tracker

[issue47155] Strange behavior on the tuple that includes list

2022-03-29 Thread Furkan Onder
New submission from Furkan Onder : I am creating the tuple that includes a list and than I am trying to add new value to this list. Interpreter throw the error, but list is changing. I think it doesn't make sense. I think if we throw the type error, list shouldn't be change. >>> tup =