ryles <ryle...@gmail.com> writes: > > sentinel = object() > > I agree, this is cleaner than None. We're still in the same boat, > though, regarding iter(). Either it's 'item == None' or 'item == object ()'
Use "item is sentinel". -- http://mail.python.org/mailman/listinfo/python-list