This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bethard
Recipients bethard, djc, gpolo, gward, rhettinger, shawnmorel
Date 2008-04-02.15:34:28
SpamBayes Score 0.182506
Marked as misclassified No
Message-id <1207150470.41.0.456486068876.issue2444@psf.upfronthosting.co.za>
In-reply-to
Content
Subclassing dict seems like a bad idea. The options value returned by
.parse_args() is not supposed to be dict-like, it's supposed to be
object-like. That is, the natural way of accessing values from it is
through dotted attribute access, not dict-indexing access. All the
documentation for the module makes this clear. Giving it both attribute
access and dict-indexing access would violate TOOWTDI. The One Obvious
way to get dict-indexing access from an attribute oriented object is
already vars().
History
Date User Action Args
2008-04-02 15:34:30bethardsetspambayes_score: 0.182506 -> 0.182506
recipients: + bethard, gward, rhettinger, gpolo, djc, shawnmorel
2008-04-02 15:34:30bethardsetspambayes_score: 0.182506 -> 0.182506
messageid: <1207150470.41.0.456486068876.issue2444@psf.upfronthosting.co.za>
2008-04-02 15:34:28bethardlinkissue2444 messages
2008-04-02 15:34:28bethardcreate