Your code has an unpacking error in the first line. I think you mean this,
right?
no_items = object()
item = no_items
for item in get_items():
frob(item)
if item is no_items:
raise ValueError()
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/66HQPXHNAGM3NLZA4R4KOEOP2HI2ESOU/
Code of Conduct: http://python.org/psf/codeofconduct/