Join Nostr
2024-09-04 15:43:31 UTC

webbureaucrat on Nostr: I went to check and see if there was a more idiomatic way of checking if a #Python ...

I went to check and see if there was a more idiomatic way of checking if a #Python list is empty than `len(xs) == 0` and I found the actual greatest thread in the history of forums, locked by a moderator etc.

https://stackoverflow.com/questions/53513/how-do-i-check-if-a-list-is-empty