I have code that relies on python 2 typing feature
result1 = result_or_None (...)
result2 = result_or_None (...)
final = max (result1, result2)
Problem is - python 3 doesn't support "Result string" > None
comparison so the code returns run-time exception. Python 2 supports this well. Is there way to implement this idiomatically (e.g. without explicitly enumerating all None cases)?
This also uses idea from functional programming (None as bottom value) - bit disappointing not to see it in python3 (what was the rationale for removing this?)