On 20/06/23 7:36 pm, Barry wrote:
I have some APIs that do return None or a list.
The None says that a list is not available and that the caller is
responsible with dealing in a application-domain specific with
with that situation.

In that case, the caller should probably be checking for
None rather than blindly trying to iterate over the result.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to