Is there an equivalent in Python to C# null-conditional operator?
System.Text.StringBuilder sb = null; string s = sb?.ToString(); // No error
There's a proposal under PEP-505, in the meantime there's a library for this:
from pymaybe import maybe print(maybe(None).toString())