Skip to content

Parse error at or near `JUMP_FORWARD' instruction #150

Closed
@wangym5106

Description

@wangym5106

Python bytecode version: 2.7, compiled with 2.7.10
uncompyle6 71e7120 on Python 3.6.4

Code example:

def func(a):
    if a:
        return True
        something_never_run()

Instruction context:

   2       0  LOAD_FAST             0  'a'
           3  POP_JUMP_IF_FALSE    20  'to 20'

   3       6  LOAD_GLOBAL           0  'True'
           9  RETURN_VALUE

   4      10  LOAD_GLOBAL           1  'something_never_run'
          13  CALL_FUNCTION_0       0
          16  POP_TOP
          17  JUMP_FORWARD          0  'to 20'
        20_0  COME_FROM            17  '17'

This is a rare condition but this code is valid. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions