By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

Storing Meta-data in python

P: 6
Is there a mechanism to express meta-data about classes, methods, variables and method parameters in python ( like annotations in java)? I will be thankful if anyone can point me to a sample code or a web reference.
Apr 2 '08 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 849
Look at pyDoc, it's a standard library module, and it's actually how the library is written online, just like Javadoc with the Java API. You can find tutorials on its use online.
Apr 2 '08 #2

P: 6
In javascript I'm used to associating metadata with a function as
follows.

foo.bar = "foobar";
function foo(){
}

What's the normal python practice to do this kind of a thing. What's the
python way of doing this.
Apr 3 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.