I wish I could add docstrings to vars.
Matimus
mccredie at gmail.com
Tue Sep 12 12:56:33 EDT 2006
It seems that you are getting some complex answers with confusing
examples. So, here is hopefully a less confusing example:
class MyDict(dict):
"""MyDict doc-string!"""
#then to use it
d = MyDict()
d['something'] = whatever you want
This solution leaves it open to do whatever you want with the class,
but it's better than nothing.
Matthew Wilson wrote:
> I build a lot of elaborate dictionaries in my interpreter, and then I
> forget exactly how they work. It would be really nice to be able to add
> notes to the dictionary.
>
> Is there some way to do this now?
>
> Matt
>
>
> --
> A better way of running series of SAS programs:
> http://overlook.homelinux.net/wilsonwiki/SasAndMakefiles
More information about the Python-list
mailing list