[issue39110] UserList-subclass Tree slicing changes the original list unexpectedly

2019-12-21 Thread Tarn Yeong Ching
Tarn Yeong Ching added the comment: GOD... I see. Thank you very much! -- ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailin

[issue39110] UserList-subclass Tree slicing changes the original list unexpectedly

2019-12-21 Thread Mark Dickinson
__ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue39110] UserList-subclass Tree slicing changes the original list unexpectedly

2019-12-20 Thread Tarn Yeong Ching
Tarn Yeong Ching added the comment: and more... It doesn't happen when Tree directly subclasses list. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39110] UserList-subclass Tree slicing changes the original list unexpectedly

2019-12-20 Thread ctarn
<https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue39110] UserList-subclass Tree slicing changes the original list unexpectedly

2019-12-20 Thread ctarn
Change by ctarn : Removed file: https://bugs.python.org/file48797/bug.py ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailin

[issue39110] UserList-subclass Tree slicing changes the original list unexpectedly

2019-12-20 Thread ctarn
Tree slicing changes node attribute -> UserList-subclass Tree slicing changes the original list unexpectedly Added file: https://bugs.python.org/file48799/bug.py ___ Python tracker <https://bugs.python.org/issu

[issue39110] UserList-subclass Tree slicing changes node attribute

2019-12-20 Thread ctarn
Change by ctarn : -- resolution: not a bug -> ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39110] UserList-subclass Tree slicing changes node attribute

2019-12-20 Thread ctarn
-> open ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-lis

[issue39110] UserList-subclass Tree slicing changes node attribute

2019-12-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: (ctarn), if you want to discuss what you are doing further, please try a discussion list, such as python-list. -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue39

[issue39110] UserList-subclass Tree slicing changes node attribute

2019-12-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-

[issue39110] UserList-subclass Tree slicing changes node attribute

2019-12-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39110] UserList-subclass Tree slicing changes node attribute

2019-12-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- status: pending -> open title: It seems that list() changes the value of the parameter -> UserList-subclass Tree slicing changes node attribute ___ Python tracker <https://bugs.python.org/i

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread Eric Snow
recommend closing this. -- nosy: +eric.snow resolution: -> not a bug status: open -> pending versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/i

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread ctarn
ctarn added the comment: OK, I mean... when I call `a = list(b)`, list() changes `b` unexpectedly, not `a != b` in this case. That is why I replace the left operand with `_`. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread ctarn
ctarn added the comment: I printed the value of *.owner before and after `_ = list(d...)`, and marked the results in the comments. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread ctarn
ctarn added the comment: Hi, thanks. It did call `list()` through `_ = list(d[0:2])` -- ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Pytho

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread Steven D'Aprano
of the parameter? -- nosy: +steven.daprano ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread ctarn
]. -- ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue39110] It seems that list() changes the value of the parameter

2019-12-20 Thread ctarn
ker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue39110] It seems that unittest.TestCase.assertListEqual changes the value of its parameters

2019-12-20 Thread ctarn
Change by ctarn : Removed file: https://bugs.python.org/file48796/bug.py ___ Python tracker <https://bugs.python.org/issue39110> ___ ___ Python-bugs-list mailin

[issue39110] It seems that unittest.TestCase.assertListEqual changes the value of its parameters

2019-12-20 Thread ctarn
New submission from ctarn : Sorry, it is caused by list(). I will update the issue very soon. -- nosy: +ctarn ___ Python tracker <https://bugs.python.org/issue39

[issue39110] It seems that unittest.TestCase.assertListEqual changes the value of its parameters

2019-12-20 Thread ctarn
Change by ctarn : -- title: It seems that TestCase.assertListEqual change the value of its parameters -> It seems that unittest.TestCase.assertListEqual changes the value of its parameters ___ Python tracker <https://bugs.python.org/issu

[issue39110] It seems that TestCase.assertListEqual change the value of its parameters

2019-12-20 Thread ctarn
Change by ctarn : -- nosy: -ctarn title: It -> It seems that TestCase.assertListEqual change the value of its parameters versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue39110] It

2019-12-20 Thread ctarn
Change by ctarn : -- files: bug.py nosy: ctarn priority: normal severity: normal status: open title: It type: behavior Added file: https://bugs.python.org/file48796/bug.py ___ Python tracker <https://bugs.python.org/issue39