True. Python has None, so why use "N/A" here? Or if that is not explicit enough, do MISSING_VALUE = object().
Bonus points would have been given, if one of the literals would be "NA" by typo :)
Rant: I'd really like for Python to have type-safe named symbols, i.e. an equivalent of MISSING_VALUE = object where repr(MISSING_VALUE) == "MISSING_VALUE" and, ideally, str(MISSING_VALUE) -> Exception.
View all comments
Show parent comment
1
u/R3D3-1 Jul 15 '21
True. Python has
None, so why use"N/A"here? Or if that is not explicit enough, doMISSING_VALUE = object().Bonus points would have been given, if one of the literals would be "NA" by typo :)
Rant: I'd really like for Python to have type-safe named symbols, i.e. an equivalent of
MISSING_VALUE = objectwhererepr(MISSING_VALUE) == "MISSING_VALUE"and, ideally,str(MISSING_VALUE) -> Exception.