I\'ve got an Nonetype value x, it\'s generally a number, but could be None. I want to divide it by a number, but Python raises:
Nonetype
x
None
In Python 3 you can use the "or" keyword too. This way:
foo = bar or 0 foo2 = bar or ""