Michael Foord added the comment: I'm not sure to what extent mock documentation should explain Python semantics. The docs *do* make clear that sentinel is useful for where you want to test (compare) objects by *identity*. Problems with copying and pickling them come from the fact that those operations don't preserve *identity*, which is a basic facet of *Python* and not down to mock/sentinel.
"sentinel provides a convenient way of creating and testing the identity of objects like this." ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20804> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com