Re: I wish I could add docstrings to vars.

2006-09-12 Thread Matimus
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

Re: I wish I could add docstrings to vars.

2006-09-12 Thread Neil Cerutti
On 2006-09-12, Matthew Wilson <[EMAIL PROTECTED]> 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? Writing a thin wrapper around

I wish I could add docstrings to vars.

2006-09-12 Thread Matthew Wilson
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/wilso