On Wed, Apr 2, 2008 at 3:04 PM, Heshan Suriyaarachchi <[EMAIL PROTECTED]> wrote: > Hi > Is there a mechanism to express meta-data about classes, methods, > variables and parameters in python ( like annotations in java)? I will be > thankful if anyone can point me to a sample code or a web reference. >
There is no direct equivalent of annotations (like Java) in python. But decorators and __doc__ can provide similar features. Also considering python is a dynamic language with reflection being integral part of the language, many of the features are easy to implement. > Thanx > Heshan Suriyaarachchi > > > > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Supreet Sethi http://findmeajob.wordpress.com _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers