I don't quite understand why Python will automatically convert any 0 returned to me by a function into a None object. I've programmed in almost all of the common languages, yet I've never come across this before. I would expect that if I set 0 in the result, I would get 0 back from the function.
Could anyone please explain why Python does this?
EDIT:
To give some more information, we have a wrapper around a C++ class and the return value type is a void pointer. So if it is returning an integer with a value of 0, it gives me a None type. Does this make sense to anyone?
I'm just new to Python and trying to figure out when I might expect None types rather than the return value.