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 | rbcollins |
|---|---|
| Recipients | barry, facundobatista, rbcollins |
| Date | 2007年10月16日.03:59:13 |
| SpamBayes Score | 0.13240291 |
| Marked as misclassified | No |
| Message-id | <1192507153.75.0.598829968885.issue1259@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
> The error message is wrong: it's a TypeError, but the message should say > something like... > > TypeError: slice indices must be integers or have an __index__ method This would be a false message, as, as my report demonstrated, slice indices *can* be None. And there is a very good reason for accepting None in the second parameter in slice notation as there is no value for '-0' to represent the end of the region being sliced, and None meaning 'default' fills that need most effectively. Surely the right fix is as Barry noted, to handle None correctly within this function? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年10月16日 03:59:13 | rbcollins | set | spambayes_score: 0.132403 -> 0.13240291 recipients: + rbcollins, barry, facundobatista |
| 2007年10月16日 03:59:13 | rbcollins | set | spambayes_score: 0.132403 -> 0.132403 messageid: <1192507153.75.0.598829968885.issue1259@psf.upfronthosting.co.za> |
| 2007年10月16日 03:59:13 | rbcollins | link | issue1259 messages |
| 2007年10月16日 03:59:13 | rbcollins | create | |