[issue39403] Objects equal (assertEqual return True) but behave differently

2020-01-20 Thread wh1te r4bb1t
New submission from wh1te r4bb1t : Here is a code highlighting a very strange behavior. This has been noticed in python 3.7, 3.8 and 3.9.0a2 def function(input_list, a='x'): [input_list[i].append(a) for i in range(len(input_list))] return input_list list1 = [[0], [0],

[issue39403] Objects equal (assertEqual return True) but behave differently

2020-01-20 Thread wh1te r4bb1t
Change by wh1te r4bb1t : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue39403> ___ ___ Python-bugs-list mailing list Unsub

[issue39403] Objects equal (assertEqual return True) but behave differently

2020-01-20 Thread wh1te r4bb1t
Change by wh1te r4bb1t : -- versions: +Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue39403> ___ ___ Python-bugs-list mailing list Unsub