Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
PYTHON definition: A function pointed to by more than one "higher level" function could be a?
1 Answer
- husoskiLv 73 years ago
It's just a function. Python doesn't have (or need) "higher level functions.". Python functions are so-called "first-class objects" and names are bound to them just like variable names are to numbers, strings, lists, etc.
You can pass them as arguments or use = to store a reference to a function in a local or global variable, or in a list, tuple, set, object, etc.
(Functions have the special property of being "callable", but even that's not unique. You can define your own callable objects by adding a __call__ method to the class definition.)
I suppose you could call a Python function "higher level" if it takes another function as an argument, but that's not really a Python concept.