Should NoneType be iterable?

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jun 19 20:50:36 EDT 2023


I would question the wisdom of designing an API that
can return either a sequence or None. If it normally
returns a sequence, and there are no items to return,
it should return an empty sequence.

-- 
Greg



More information about the Python-list mailing list