Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use concrete classes inherited from OSError instead of errno check #60909

Closed
asvetlov opened this issue Dec 17, 2012 · 3 comments
Closed

Use concrete classes inherited from OSError instead of errno check #60909

asvetlov opened this issue Dec 17, 2012 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@asvetlov
Copy link
Contributor

BPO 16705
Nosy @asvetlov
Dependencies
  • bpo-16706: Get rid of os.error. Use OSError instead
  • bpo-16715: Get rid of IOError. Use OSError instead
  • bpo-16716: Deprecate OSError aliases in the doc
  • bpo-16717: Get rid of socket.error. Use OSError instead
  • bpo-17650: There is no exception correspond to errno EROFS
  • bpo-17651: Errno checking replaced by concrete classes inherited from OSError
  • 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 = 'https://github.com/asvetlov'
    closed_at = <Date 2018-01-29.13:48:32.453>
    created_at = <Date 2012-12-17.20:31:39.786>
    labels = ['type-bug', 'library']
    title = 'Use concrete classes inherited from OSError instead of errno check'
    updated_at = <Date 2018-01-29.13:48:32.452>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2018-01-29.13:48:32.452>
    actor = 'asvetlov'
    assignee = 'asvetlov'
    closed = True
    closed_date = <Date 2018-01-29.13:48:32.453>
    closer = 'asvetlov'
    components = ['Library (Lib)']
    creation = <Date 2012-12-17.20:31:39.786>
    creator = 'asvetlov'
    dependencies = ['16706', '16715', '16716', '16717', '17650', '17651']
    files = []
    hgrepos = []
    issue_num = 16705
    keywords = []
    message_count = 3.0
    messages = ['177668', '177669', '177670']
    nosy_count = 2.0
    nosy_names = ['asvetlov', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16705'
    versions = ['Python 3.4']

    @asvetlov
    Copy link
    Contributor Author

    Probably it is long enough work and should be done in several iteration after converting all exceptions like IOError, EnvironmentError, WindowsError, mmap.error, socket.error and select.error to OSError.

    @asvetlov asvetlov self-assigned this Dec 17, 2012
    @asvetlov asvetlov added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Dec 17, 2012
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Dec 17, 2012

    New changeset 7aa2ccc5aef1 by Andrew Svetlov in branch 'default':
    Replace mmap.error with OSError, bpo-16705
    http://hg.python.org/cpython/rev/7aa2ccc5aef1

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Dec 17, 2012

    New changeset 061e9a439f54 by Andrew Svetlov in branch 'default':
    Get rig of EnvironmentError (bpo-16705)
    http://hg.python.org/cpython/rev/061e9a439f54

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant