Dennis Lee Bieber <wlfr...@ix.netcom.com> writes:
>       And what real difference is that going to gain versus the existing
> .get() method where the default is a sentinel? 

It's just less ugly.  I don't know a way to get a unique sentinel
other than "sentinel = object()" or something like that, creating more
clutter.  Maybe in a specific application, I can figure out a value
that won't occur in the dictionary and use that, but it's cleaner to
use a generic construction.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to