Skip to content

Cover more code flags in disassembly output #138

@greenozon

Description

@greenozon

Description

For the moment I'm observing the case when pydisasm output leaves some flags as hex values,
but it'd be nice to decode it into user friendly strings

Priority

Low

Tests

version used:

pydisasm --version
pydisasm, version 6.1.2.dev0

example of the sample .pyc:

# Flags:             0x0100001f (0x1000000 | NESTED | VARKEYWORDS | VARARGS | NEWLOCALS | OPTIMIZED)

expected output:
0x1000000 decoded into FUTURE_ANNOTATIONS
as the module is using

from future import annotations

Thanks!

Attached sample .pyc:
rewriter.cpython-311.zip

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions