Skip to content

Unexcepted UnboundLocalError: local variable #98427

@MrMarvel

Description

@MrMarvel

Bug report

image

After declaring and predefined variable I am working with it in loop.
After I use this variable and it cause and error like it wasn't defined by default.

Your environment

  • CPython versions tested on: 3.10.4
  • Operating system and architecture: Windows 10H2

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