lundi 5 janvier 2015

Is there a Python Equivalent to PHP's ReflectionClass? [duplicate]


This question already has an answer here:




I was playing around with PHP's ReflectionClass, and for the first time in my ~2 years of PHP coding, I found the ideas behind it quite useful.


However, I am trying to learn Python and translate some of my PHP scripts to Python - so I am quite curious if there is any sort of equivalent of PHP's ReflectionClass in Python -


Preliminary research via Googling it, searching for it on php2python.com, and checking StackOverflow for it returned nothing useful -


Thus, I'm afraid that "No - There is no such equivalent in Python" might be the correct answer here.


Any other perspectives on this?


Thanks in advance!






Aucun commentaire:

Enregistrer un commentaire