versionchanged:: 1.8 -- output_type is new