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

Misleading comment inenum.verify.__call__ #136764

Open
Assignees
damngamerz
Labels
docsDocumentation in the Doc direasystdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@azerty-svg

Description

@azerty-svg

I saw some nonsense in a comment.

ifenum_type=='flag':# check for powers of twoforiinrange(_high_bit(low)+1,_high_bit(high)):if2**inotinvalues:missing.append(2**i)elifenum_type=='enum':# check for powers of oneforiinrange(low+1,high):ifinotinvalues:missing.append(i)

The nonsense in this code, present in the class EnumCheck, is the comment about powers of 1. What is meant is rather "checking the identifiers are contiguous".
I suggest replacing the comment with something more suitable.

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc direasystdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp