Change render slot with python?

Is it possible to change which render slot the image editor is set to via python? My plan is to use an app handler to automatically increment the render slot before each render so this doesn’t have to be done manually for tests on the fly. Anyway to do this? Thanks.

It appears to be a property of the “Render Result” image:

bpy.data.images[‘Render Result’].render_slots.active_index = 4 # set to 5th render slot

Sweet! Thanks.