errno and strerror attributes incorrectly set on socket errors wrapped by urllib

Open
#50,720 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
networking

Research direction

Start by reviewing keeperrdata.patch and the Library (Lib) component information, then trace how urllib wraps socket errors. Done means the wrapped errors retain the correct errno and strerror attributes; verify the behavior against the original issue description.

Written by the indexing model from the issue text.

Description

3.10 3.11 3.12 stdlib type-bug
BPO 6471
Nosy @birkenfeld, @amauryfa, @orsenthil, @ezio-melotti, @bitdancer, @cjerdonek, @iritkatriel
Files
  • keeperrdata.patch: patch to retain errno and strerror
  • 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 2009-07-12.20:54:33.896>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'errno and strerror attributes incorrectly set on socket errors wrapped by urllib'
    updated_at = <Date 2021-11-30.20:20:38.331>
    user = 'https://github.com/ezio-melotti'
    

    bugs.python.org fields:

    activity = <Date 2021-11-30.20:20:38.331>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2009-07-12.20:54:33.896>
    creator = 'ezio.melotti'
    dependencies = []
    files = ['26559']
    hgrepos = []
    issue_num = 6471
    keywords = ['patch']
    message_count = 9.0
    messages = ['90458', '90462', '90466', '100178', '166705', '167330', '170710', '170723', '407399']
    nosy_count = 9.0
    nosy_names = ['georg.brandl', 'amaury.forgeotdarc', 'orsenthil', 'ezio.melotti', 'r.david.murray', 'chris.jerdonek', 'catherine', 'denkoren', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue6471'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
    

    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.