8000 getting variable values before they've been set to something · Issue #1 · PyBlocks/PyBlocks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
10000
getting variable values before they've been set to something #1
Open
@carlosperate

Description

@carlosperate

Since global declarations has been removed it means we can raise an exception when trying to get a variable value before it has been declared.
So when we "create a variable" from the toolbox we could use it in a way that causes a NameError exception. Say we create "foo", we could immediately add the following blocks causing this issue:

 ________________    ______
|      ___       |  |      |
|set  |foo|  to  < <  foo  |
|      ‾‾‾       |  |      | 
 ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾    ‾‾‾‾‾‾

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0