Add index attribute to IndexError

Open
#62,362 18 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reviewing the attached indexerror.patch and indexerror.tests, then compare them with indexerror_all.patch, which includes code, tests, and documentation. Run the relevant interpreter tests to understand the expected IndexError behavior. Done means the index attribute is implemented consistently and the accompanying tests and documentation pass review.

Written by the indexing model from the issue text.

Description

interpreter-core type-feature
BPO 18162
Nosy @warsaw, @brettcannon, @rhettinger, @ezio-melotti, @merwok, @bitdancer, @cool-RR, @serhiy-storchaka
Files
  • indexerror.patch: patch
  • indexerror.tests: tests
  • indexerror_all.patch: Full patch including code+tests+docs
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2013-06-07.20:50:59.974>
    labels = ['interpreter-core', 'type-feature']
    title = 'Add index attribute to IndexError'
    updated_at = <Date 2016-01-01.04:19:11.627>
    user = 'https://github.com/brettcannon'
    

    bugs.python.org fields:

    activity = <Date 2016-01-01.04:19:11.627>
    actor = 'ezio.melotti'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2013-06-07.20:50:59.974>
    creator = 'brett.cannon'
    dependencies = []
    files = ['39055', '39056', '39060']
    hgrepos = []
    issue_num = 18162
    keywords = ['patch']
    message_count = 18.0
    messages = ['190777', '190840', '190879', '191234', '191245', '191256', '191258', '191386', '191403', '191408', '202327', '222353', '222354', '222355', '241149', '241153', '257269', '257270']
    nosy_count = 10.0
    nosy_names = ['barry', 'brett.cannon', 'rhettinger', 'ezio.melotti', 'eric.araujo', 'r.david.murray', 'cvrebert', 'cool-RR', 'serhiy.storchaka', 'blackfawn']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'test needed'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue18162'
    versions = ['Python 3.5']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.