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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/66HQPXHNAGM3NLZA4R4KOEOP2HI2ESOU/ Code of Conduct: http://python.org/psf/codeofconduct/