Re: Best way to do attribute docstrings?

2007-09-26 Thread Ken Kuhlman
On Sep 26, 12:25 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 25 Sep 2007 22:41:31 -0300,KenKuhlman<[EMAIL PROTECTED]> > escribi?: > > > Replying to myself in case someone finds this interesting. > > > Anyway, I took another shot at this with a little fresher mind, and it > > was qu

Re: Best way to do attribute docstrings?

2007-09-25 Thread Ken Kuhlman
Replying to myself in case someone finds this interesting. Anyway, I took another shot at this with a little fresher mind, and it was quickly obvious that I was trying to force attributes to behave more like classes. It was a small step from there to creating a factory function to return instance

Re: Best way to do attribute docstrings?

2007-09-11 Thread Ken Kuhlman
Thanks for the response! It was just the kick I needed to realize that I was letting my frustration get the best of me and that I was going down a dead-end. I blame the fact that I was coding on little sleep :-) I went with the solution of giving a naming convention to the docstrings and relyin

Best way to do attribute docstrings?

2007-09-07 Thread Ken Kuhlman
What's the best method for annotating attributes with a docstring? I'm looking to be able to introspect my class & get the comments back out. The technique I'm using is a little hoaky, but works.. basically I create subclasses of the builtin types that I want to be able to use & then instantiate