This applies to at least 2.77a and 2.78rc1
When I change certain render settings using the GUI, the Python command for that render setting shows up in the Info area. However, when I open up a console and try to duplicate these commands, I get the following error:
Traceback (most recent call last): File "<blender_console>", line 1, in <module> AttributeError: 'Scene' object has no attribute 'file_format'
I haven't done a thorough search for this mismatch, but it's incorrect for the following settings:
Thanks to this stackexchange post, I was able to figure out that the settings actually live in