[Python-Dev] Doc strings for typeslots?

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 26 Mar 2003 12:01:00 +1200 (NZST)


> Um, I'm afraid this is how it is.  __xxx__ methods have generic
> docstrings. :-(

Can you just clarify a bit what you mean by "this":
would my idea of poking a docstring into the wrapper
object work, or do all types share the same wrappers?

It seems as though they *don't* share the same wrappers...

Python 2.2 (#1, Jul 11 2002, 14:19:37) 
>>> id(int.__dict__['__add__'])
135662196
>>> id(float.__dict__['__add__'])
135668268

...or is there some magic going on there that I'm
not aware of?

Thanks,

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+