Skip to content

use both "for in" and "ElementTree.remove" has a index bug #86058

@WoodyWoo

Description

@WoodyWoo
mannequin
BPO 41892
Nosy @scoder, @ericvsmith, @ned-deily, @serhiy-storchaka, @miss-islington
PRs
  • bpo-41892: Clarify an example in the ElementTree docs #22464
  • bpo-41892: Clarify an example in the ElementTree docs #22546
  • [3.8] bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464) #22553
  • [3.9] bpo-41892: Clarify that an example in the ElementTree docs explicitly avoids modifying an XML tree while iterating over it. (GH-22464) #22554
  • 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 = <Date 2020-10-05.04:22:13.395>
    created_at = <Date 2020-09-30.14:20:25.049>
    labels = ['type-bug', '3.8', '3.9', '3.10', 'expert-XML', 'invalid', 'docs']
    title = 'use both "for in" and "ElementTree.remove" has a index bug'
    updated_at = <Date 2020-10-05.04:22:13.395>
    user = 'https://bugs.python.org/WoodyWoo'

    bugs.python.org fields:

    activity = <Date 2020-10-05.04:22:13.395>
    actor = 'scoder'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2020-10-05.04:22:13.395>
    closer = 'scoder'
    components = ['Documentation', 'XML']
    creation = <Date 2020-09-30.14:20:25.049>
    creator = 'WoodyWoo'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41892
    keywords = ['patch']
    message_count = 18.0
    messages = ['377698', '377699', '377700', '377701', '377702', '377703', '377704', '377705', '377706', '377707', '377724', '377732', '377756', '377764', '377982', '377984', '377989', '377992']
    nosy_count = 8.0
    nosy_names = ['scoder', 'eric.smith', 'ned.deily', 'eli.bendersky', 'docs@python', 'serhiy.storchaka', 'miss-islington', 'WoodyWoo']
    pr_nums = ['22464', '22546', '22553', '22554']
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41892'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dirtopic-XMLtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions