How to skip providing default arguments in a Python method

前端 未结 3 1938
抹茶落季
抹茶落季 2020-12-16 22:08

I\'m calling this method from the Python boto2 library:

boto.emr.step.StreamingStep(name, mapper, reducer=None, combiner=None, action_on_failure=\'TERMINATE_         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 22:35

    Just pass the arguments you want by keyword: boto.emr.step.StreamingStep(name='a name', mapper='a mapper', combiner='a combiner')

提交回复
热议问题