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

Remove PyErr_Set...WithUnicodeFilename APIs #88260

Closed
methane opened this issue May 10, 2021 · 1 comment
Closed

Remove PyErr_Set...WithUnicodeFilename APIs #88260

methane opened this issue May 10, 2021 · 1 comment
Labels
3.11 only security fixes topic-C-API type-feature A feature request or enhancement

Comments

@methane
Copy link
Member

methane commented May 10, 2021

BPO 44094
Nosy @methane
PRs
  • bpo-44094: Remove deprecated PyErr_ APIs. #26011
  • 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 2021-05-13.20:45:48.219>
    created_at = <Date 2021-05-10.05:07:02.379>
    labels = ['expert-C-API', 'type-feature', '3.11']
    title = 'Remove PyErr_Set...WithUnicodeFilename APIs'
    updated_at = <Date 2021-05-13.20:45:48.218>
    user = 'https://github.com/methane'

    bugs.python.org fields:

    activity = <Date 2021-05-13.20:45:48.218>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-13.20:45:48.219>
    closer = 'pitrou'
    components = ['C API']
    creation = <Date 2021-05-10.05:07:02.379>
    creator = 'methane'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44094
    keywords = ['patch']
    message_count = 1.0
    messages = ['393351']
    nosy_count = 1.0
    nosy_names = ['methane']
    pr_nums = ['26011']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44094'
    versions = ['Python 3.11']

    @methane
    Copy link
    Member Author

    methane commented May 10, 2021

    These APIs are deprecated since Python 3.3. They are not documented too.

    #ifdef MS_WINDOWS
    Py_DEPRECATED(3.3)
    PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithUnicodeFilename(
        PyObject *, const Py_UNICODE *);
    
    /* XXX redeclare to use WSTRING */
    Py_DEPRECATED(3.3)
    PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithUnicodeFilename(
        int, const Py_UNICODE *);
    Py_DEPRECATED(3.3)
    PyAPI_FUNC(PyObject *) PyErr_SetExcFromWindowsErrWithUnicodeFilename(
        PyObject *,int, const Py_UNICODE *);
    #endif
    

    @methane methane added 3.11 only security fixes topic-C-API labels May 10, 2021
    @pitrou pitrou closed this as completed May 13, 2021
    @pitrou pitrou added the type-feature A feature request or enhancement label May 13, 2021
    @pitrou pitrou closed this as completed May 13, 2021
    @pitrou pitrou added the type-feature A feature request or enhancement label May 13, 2021
    @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
    3.11 only security fixes topic-C-API type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants