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

gh-93820: Fix copy() regression in enum.Flag #93876

Merged
merged 1 commit into from
Jun 16, 2022

Commits on Jun 15, 2022

  1. pythongh-93820: Fix copy() regression in enum.Flag

    pythonGH-26658 introduced a regression in copy / pickle protocol for combined
    `enum.Flag`s. `copy.copy(re.A | re.I)` would fail with
    `AttributeError: ASCII|IGNORECASE`.
    
    `enum.Flag` now has a `__reduce_ex__()` method that reduces flags by
    combined value, not by combined name.
    tiran committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    fe49627 View commit details
    Browse the repository at this point in the history