I have been reading a bit on some of the py2 to py3 changes. I am a bit confused on some of the changes, for instance if I write in py2:
Also, if speed is defined to be none:
if type(speed)==types.NoneType: speed = self.data.speedand then I convert that using py2to3 it gives me:
if type(speed)==type(None): speed = self.data.speedSo in py2 the type of None is: <type 'NoneType'> where in py3 the type of None is <class 'NoneType'>. I guess what confuses me (coming from the java world) when I think of objects I think of having access to said objects methods. However, there are no methods for NoneType so what was the point on making it a class?
Also, if speed is defined to be none:
speed = NoneThen would:
if type(speed)==type(None): speed = self.data.speedbe == to:
if speed == None: speed = self.data.speedin both py2 and py3?