Message212633
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." |
|
Date |
User |
Action |
Args |
2014-03-03 12:28:26 | michael.foord | set | recipients:
+ michael.foord, peter.otten, r.david.murray, Vlastimil.Zíma |
2014-03-03 12:28:26 | michael.foord | set | messageid: <1393849706.83.0.797457627274.issue20804@psf.upfronthosting.co.za> |
2014-03-03 12:28:26 | michael.foord | link | issue20804 messages |
2014-03-03 12:28:26 | michael.foord | create | |
|