Ian Kelly <ian.g.ke...@gmail.com>:

> When I need to do this, I use:
>
>     SENTINEL = object()
>
> It's still a singleton, and why should a sentinel be mutable?

Private enums are often nicer in that they provide str() and repr().


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to