Skip to content

recent change when passing a Union to a function #83369

Closed

Description

@KevinSchlossser
BPO 39188

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 2020-01-02.10:44:44.056>
labels = ['ctypes', 'type-bug', '3.8']
title = 'recent change when passing a Union to a function'
updated_at = <Date 2020-01-02.10:44:44.056>
user = 'https://bugs.python.org/KevinSchlossser'

bugs.python.org fields:

activity = <Date 2020-01-02.10:44:44.056>
actor = 'Kevin Schlossser'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['ctypes']
creation = <Date 2020-01-02.10:44:44.056>
creator = 'Kevin Schlossser'
dependencies = []
files = []
hgrepos = []
issue_num = 39188
keywords = []
message_count = 1.0
messages = ['359187']
nosy_count = 1.0
nosy_names = ['Kevin Schlossser']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue39188'
versions = ['Python 3.8']

Activity

  1. KevinSchlossser commented on Jan 2, 2020

    KevinSchlosssermannequin
    MannequinAuthor

    OK so There was a change made to fix bpo-26628. Something was forgotten about.. On Windows there is the VARIANT Union which gets used all over the Windows API. This change is going to really break a lot of peoples code and there are no code examples of what needs to be done to fix the now broken ctypes, what needs to be done instead of passing a Union? what new structure has been made that Windows is going to se as a Union?
    That is a huge change to make with no kind of notice that it was going to be done. Now I know it is publicly visible on your issue tracker, but come on now the issue was made 4 years ago and then all of a sudden out of no where boom broken software.. Now If that issue was a major issue and it was causing all kinds of grief I would think that it
    A. would have been fixed sooner... and
    B. there would have been more then a handful of people where the original "bug" caused a problem.

    I am wondering if maybe this bug is a NIX issue. there are simply way to many programs out that are running on Windows and Unions are being passed all the time in functions and no problems are occurring. If there were problems with it in Windows you would have 1000's of reports of crashing from this problem.

    A change like that should be posted on the Python website before it gets made so that all possible repercussions can be looked at.

  2. transferred this issue fromon Apr 10, 2022
  3. ZeroIntensity commented on Oct 19, 2026

    @ZeroIntensity
    Member

    This was fixed in #17960.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions