[ python-Bugs-856072 ] UserDict.DictMixin's comments should be a docstring

SourceForge.net noreply at sourceforge.net
Sun Dec 21 16:24:40 EST 2003


Bugs item #856072, was opened at 2003-12-08 01:19
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=856072&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Bennetts (spiv)
Assigned to: Raymond Hettinger (rhettinger)
Summary: UserDict.DictMixin's comments should be a docstring

Initial Comment:
DictMixin in the UserDict module has no docstring --
but it has a comment that reads like one.  I think the
comment should probably be changed to a docstring so
that interactive use of e.g. "help(UserDict.DictMixin)"
explains how it works (override _getitem__(),
__setitem__(), __delitem__(), and keys(), and the rest
is done for you).

If the existing comment is considered too cryptic, the
text in the Library Reference for DictMixin would be a
good basis for a docstring.

(This is a really minor bug, but it's a shame to see
such a useful class not being perfectly documented! :)

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-12-21 16:24

Message:
Logged In: YES 
user_id=80475

After thinking about it for a while, I would like to stick with 
the original decision.  If you agree, please mark as Invalid 
and close the bug report.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-12-14 11:43

Message:
Logged In: YES 
user_id=80475

Okay, I'll take another look at the original decision to
omit docstrings.  The rationale was to avoid contaminating
the documentation of user classes that subclass
UserDict.DictMixin.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=856072&group_id=5470



More information about the Python-bugs-list mailing list