how to set doc-string of new-style classes
harold.fellermann at upf.edu
Tue Jan 11 16:33:10 EST 2005
On 11.01.2005, at 19:35, Alex Martelli wrote:
> harold fellermann <harold.fellermann at upf.edu> wrote:
>> 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.
>>>> x=type('x',(),dict(__doc__='hi there'))
> 'hi there'
yes, you're right ... a subsequent question, that puzzles me:
where can I apply for the "most-stupid-question"-award, now *g*
- harold -
The opposite of a correct statement is a false statement.
But the opposite of a profound truth may be another profound truth.
-- Niels Bohr
More information about the Python-list