Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 49)
49.
What does the __closure__ attribute indicate?
The number of closures in a function.
The names of all closed-over variables in a function.
The values of all closed-over variables in a function.
The tuple of cells that contain the bindings of closed-over variables in a function.
Answer: Option
Explanation:
The __closure__ attribute in Python indicates the tuple of cells that contain the bindings of closed-over variables in a function.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.