Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Enum] verify'ing a Flag class with negative values results in MemoryError #99248

Closed
Assignees
ethanfurman
Labels
performancePerformance or resource usagestdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@udhayprakash

Description

@udhayprakash

Bug report

A clear and concise description of what the bug is.
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.

Your environment

from enum import Flag, verify, NAMED_FLAGS@verify(NAMED_FLAGS)class Color(Flag):    RED = -1 # 0    GREEN = 2    BLUE = 4    WHITE = 9     NEON = 6

In this example, it is working good, if RED has value of 0, but is resulting in Memory Error, if its value is changed to -1

  • CPython versions tested on: 3.11.0
  • Operating system and architecture: Windows 10, 64 bit

Metadata

Metadata

Assignees

Labels

performancePerformance or resource usagestdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp