On 20/04/20 2:57 pm, Steven D'Aprano wrote:
process_files(delete=obsolete_files, archive=irrelevent_files)
process_files(archive=obsolete_files, delete=irrelevent_files)
That's not a use case for the proposed feature. The
intended use cases are more like
def fancy_file_processing(delete, archive):
extra_processing_for_deleted(delete)
other_processing_for_archived(archive)
basic_file_processing(delete=delete, archive=archive)
Since fancy_file_processing is a wrapper around
basic_file_processing, it makes sense to name the
corresponding arguments the same way.
Now maybe someone will misuse it in a situation that
doesn't involve wrapping and warp their local names
to fit. But any language feature can be abused. The
blame for abuse lies with the abuser, not the feature.
--
Greg
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/AYHBUUMENXA76O3JEUOYUU7OOCQNJBDE/
Code of Conduct: http://python.org/psf/codeofconduct/