harold fellermann wrote: > programm execution and should therefore be forbidden!" But, I cannot > even find out a way to set the doc string, when I CREATE a class using > type(name,bases,dict) ... At least this should be possible, IMHO.
That's what the dict parameter is for:
>>> T = type("T", (object,), dict(__doc__="what you want"))
>>> T.__doc__
'what you want'
Peter
--
http://mail.python.org/mailman/listinfo/python-list
