Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python naming convention for functions returning functions [closed]

What is the Python naming convention, if any, for functions that return another function?

like image 799
erickrf Avatar asked Oct 05 '22 22:10

erickrf


1 Answers

Function decorators are examples of functions that return functions. In the (linked) example section, there does not seem to be any standard naming convention used. I don't think that there is a convention. If you think there should be, you can always introduce a PEP. Although, there probably should not be a standard. Just name the function sensibly.

like image 120
kzh Avatar answered Oct 10 '22 02:10

kzh