Jul-28-2017, 05:50 AM
As I understand from a book that function in Python is nothing but object of Function class. I have some doubts as below:
1.When this object gets created? At the time we define function or at the time we call a function?
2.If it is getting created at the time we define a function, then will it not be a waste of memory if we do not call that function anywhere in program ?
Looking for detail answer.
1.When this object gets created? At the time we define function or at the time we call a function?
2.If it is getting created at the time we define a function, then will it not be a waste of memory if we do not call that function anywhere in program ?
Looking for detail answer.