[Python-ideas] Null coalescing operator

Joonas Liik liik.joonas at gmail.com
Thu Oct 27 11:27:52 EDT 2016


perhaps just having a utility function can get us some of the way there..

#may error
r = a.b.x.z

# will default to None
r = a?.b?.x?.z
r = get_null_aware(a, "b.x.z") # long but no new syntax, can be
implemented today.


More information about the Python-ideas mailing list