Skip to content

Comparison of character and integer #91595

@sweetStreet

Description

@sweetStreet

Bug report
"ch == 0x7F" seems to be incorrect, use "ord(ch) == 0x7F" instead

elif ch < ' ' or ch == 0x7F:

Your environment

  • CPython versions tested on: 3.7.10
  • Operating system and architecture: Linux x86-64

Metadata

Metadata

Assignees

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions