Skip to content

Unused FVC_NONE definition #148986

Description

@ShaharNaveh

Code in question:

#define FVC_NONE 0x0

This confused me about the possible oparg values for CONVERT_VALUE.

#6132 Added FORMAT_SIMPLE that's what that value used to be for.

Even the docs don't specify a possible value of "0" as an oparg:

cpython/Doc/library/dis.rst

Lines 1719 to 1723 in c650b51

* ``oparg == 1``: call :func:`str` on *value*
* ``oparg == 2``: call :func:`repr` on *value*
* ``oparg == 3``: call :func:`ascii` on *value*

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions