How can I find out the variable name in python? I know how I can find out the python command by clicking a button in the Blender interface, and then look in the info window:


For example, as can be seen, I added a cube, UV sphere, plane, camera, lamp, pressed A twice.

But how can I find out an object variable name, for example the y-rotation of an object. Because I can't find the y-rotation, when I point my mouse over it, I can only find the rotation:
This has been turned off by default in 2.80. Turn it back on in Edit > Preferences > Interface > Display > Python Tooltips