Vedran Čačić <ved...@gmail.com> added the comment: I don't see what the "fix" should be. Python doesn't have value semantics. Functions are called with objects, not with their values.
Imagine a was global variable, and then you say: a = mutable_object() f(a) a.mutate() f.assert_called_with(a) In your view of the world, this should raise?? ---------- nosy: +veky _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38346> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com