Add attributes to function in python
-
wrote on 12 Jun 2014, 12:39 last edited by
Hi,
I would like to add some descriptions to functions on top of every function
ex :
[Name = 'Test menu', Default=True, etc..]
def test():
passMy actual scenario is , I create Menus dynamically by reading all methods from a module at run time.
So i don't want to take menu name as test, i want user to provide menu name on his wish in "Name" attribute of a function. There will be more attribute, not only Name.
Is there any possibility in python, please anyone guide me ? -
Hi and welcome to devnet,
This question is not Qt related, you should ask it on a python forum.
1/2