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.18250646 |
| 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:30 | bethard | set | spambayes_score: 0.182506 -> 0.18250646 recipients: + bethard, gward, rhettinger, gpolo, djc, shawnmorel |
| 2008年04月02日 15:34:30 | bethard | set | spambayes_score: 0.182506 -> 0.182506 messageid: <1207150470.41.0.456486068876.issue2444@psf.upfronthosting.co.za> |
| 2008年04月02日 15:34:28 | bethard | link | issue2444 messages |
| 2008年04月02日 15:34:28 | bethard | create | |