Skip to main content

bad practice to pass context directly into helper functions in python [closed]

Why is it bad practice to pass context directly into helper functions in python?

Example:

def api_build_payload(context=Context, field=str, new_value=Any):


source https://stackoverflow.com/questions/71916022/bad-practice-to-pass-context-directly-into-helper-functions-in-python

Comments