xml.etree.ElementTree skips processing instructions when parsing

Open
#53,730 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reviewing the linked testcase.patch and then locate the xml.etree.ElementTree parsing tests and implementation. Confirm the expected behavior for processing instructions, reproduce the current omission, and run the relevant test suite to verify that parsed processing instructions are preserved.

Written by the indexing model from the issue text.

Description

3.8 (EOL) stdlib topic-XML type-feature
BPO 9521
Nosy @scoder, @mark-summerfield
Files
  • testcase.patch
  • 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 2010-08-05.09:25:41.808>
    labels = ['3.8', 'type-feature', 'library']
    title = 'xml.etree.ElementTree skips processing instructions when parsing'
    updated_at = <Date 2019-04-27.15:56:22.021>
    user = 'https://github.com/mark-summerfield'
    

    bugs.python.org fields:

    activity = <Date 2019-04-27.15:56:22.021>
    actor = 'scoder'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2010-08-05.09:25:41.808>
    creator = 'mark'
    dependencies = []
    files = ['33538']
    hgrepos = []
    issue_num = 9521
    keywords = ['patch']
    message_count = 10.0
    messages = ['112961', '208445', '208464', '208518', '208528', '208600', '208628', '209037', '340972', '340995']
    nosy_count = 5.0
    nosy_names = ['effbot', 'scoder', 'mark', 'eli.bendersky', 'nikratio']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue9521'
    versions = ['Python 3.8']
    

    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.