User guide
Reference
full name: tenpy.tools.misc.add_with_None_0
parent module: tenpy.tools.misc
tenpy.tools.misc
type: function
tenpy.tools.misc.
add_with_None_0
Return a + b, treating None as zero.
a + b
a – The two things to be added, or None.
None
b – The two things to be added, or None.
a + b, except if a or b is None, in which case the other variable is returned.
sum