Robin Dunn wrote:
Kevin Ollivier wrote:
I also vote for docs with the types included. =)
I think I am leaning the other way. Yes the extra info is great, but
think about it from the perspective of somebody who hasn't been using
the existing wx docs for a long time and only knows Python. Would
types in the declaration cause more confusion than it solves? Would a
different syntax help? Boa uses something that looks like Pascal,
with the types after the names, but that looks even stranger to me...
Hmmm.. After thinking about this for a few minutes, the following
occurs to me: whatever else it is, wxPython is still mostly a wrapper
around C++ classes, and therefore it's critical that the types be right,
or the code simply will not work. I therefore think that it's more
helpful if their doc, in some form, reflect the expected types.
Also, I, for one, as a true Python zealot, still occasionally find
the lack of expected type information for functions' documentation
to be annoying, and the regular python help usually then has to go
into prose to describe the expected types anyway. So I say,
leave 'em in.
The only hesitancy I have is that the types "wxWindow", "wxPoint,"
etc. are not regular python types; where will people go to find out
what these mean? (What would be *really* slick is to somehow make
the non-builtin type labels hyperlinks to doc strings that define
them-- But I suppose that's for another day.
Btw, if you leave 'em in, wouldn't these be wx.Window and wx.Point?
My $0.02,
/W
···
--
Will Sadkin
Parlance Corporation
www.nameconnector.com