Multi thread reading a file

Paul Rubin http
Fri Jul 3 05:15:40 CEST 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