Ketan Sharma <iitkgp.ke...@gmail.com> added the comment:
Realized this is expected behavior. Slight modification to the existing comments: Resolution happens in usual order for print(a, pola(a), a). 1) a -> is a reference to the array, resolved as is. 2) pola(a) -> changes the values pointed at by the reference a 3) a -> resolved as the new array values. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36223> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com