Object Inpection in python

technical talkiess
0

 Object Inpection :- 


class Employee:

    def test(self):

        pass


    def kaka(self):

        pass




import inspect



best = Employee()

# agar ye class hogi to return kar denga


print(inspect.isclass(Employee))


print(inspect.isfunction(best.test))
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)