Multi thread reading a file

Paul Rubin http
Thu Jul 2 23:15:40 EDT 2009


ryles <rylesny at 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".  



More information about the Python-list mailing list