The Python Oracle

Is there a Python equivalent of the C# null-coalescing operator?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Question
00:36 Accepted answer (Score 619)
02:28 Answer 2 (Score 129)
02:59 Answer 3 (Score 60)
03:27 Answer 4 (Score 23)
04:12 Thank you

--

Full question
https://stackoverflow.com/questions/4978...

Question links:
[null-coalescing operator]: http://msdn.microsoft.com/en-us/library/...

Accepted answer links:
[Elvis operator]: https://en.wikipedia.org/wiki/Elvis_oper...

Answer 4 links:
[PEP 505]: https://www.python.org/dev/peps/pep-0505...
[python-ideas]: https://mail.python.org/pipermail/python...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #nullcoalescingoperator

#avk47