Skip to content

Debug message printed in release mode upon invalid Opcode #96711

Closed
@serge-sans-paille

Description

@serge-sans-paille

Bug report

When decoding an invalid opcode (say opcode '0') Python raises a SystemError but also prints debug information on stderr. I think it would be better not to print these debug information in the (very uncommon!) case where such decode errors are a potential scenario that should be gracefully handled.

Simple reproducer:

exec(CodeType(0, 0, 0, 10, 0, b'\x00', (), (), (), '<>', '', 0, b''))

Metadata

Metadata

Assignees

No one assigned

    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