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 mark.dickinson
Recipients Paul.Upchurch, eric.araujo, hynek, mark.dickinson, ned.deily, serhiy.storchaka
Date 2012-11-04.10:37:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352025422.47.0.433824308333.issue14794@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm:  one more thing that needs to be fixed before this can be committed---the error messages for maltyped start, stop and step are less informative than they used to be.

Before the patch:

    >>> slice(0, 2.3, 4).indices(5)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: slice indices must be integers or None or have an __index__ method

After the patch:

    >>> slice(0, 2.3, 4).indices(5)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: 'float' object cannot be interpreted as an integer

I'll fix this.
History
Date User Action Args
2012-11-04 10:37:02mark.dickinsonsetrecipients: + mark.dickinson, ned.deily, eric.araujo, hynek, Paul.Upchurch, serhiy.storchaka
2012-11-04 10:37:02mark.dickinsonsetmessageid: <1352025422.47.0.433824308333.issue14794@psf.upfronthosting.co.za>
2012-11-04 10:37:02mark.dickinsonlinkissue14794 messages
2012-11-04 10:37:02mark.dickinsoncreate