In lots of functional languages, you'd have some_function() return an Option type and then you'd use .map() or similar on it to only do something when the value is defined. I think, that can be done in Python's syntax, but you need a library for the Option type...
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: