[Python-Dev] Re: [PEP 224] Attribute Docstrings
Aahz Maruch
aahz at netcom.com
Mon Aug 28 11:15:51 EDT 2000
[p&e]
In article <39AA22A0.D533598A at lemburg.com>,
M.-A. Lemburg <mal at lemburg.com> wrote:
>
>> >>> docs(instance)
>> {'a': 'Description of a.', 'b': 'Description of b.'}
>>
>> There are repercussions here. A module containing the example from (3) above
>> would have a __docs__ dictionary containing mappings for docstrings for each
>> top-level class and function defined, in addition to docstrings for each
>> global variable.
>
>This would not work well together with class inheritance.
Could you provide an example explaining this? Using a dict *seems* like
a good idea to me, too.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Usenet is not a democracy. It is a weird cross between an anarchy
and a dictatorship. --Aahz
More information about the Python-list
mailing list