8000 Incorrect interpretation of list, tuples, and dictionaries literals · Issue #30 · pyos/dg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Incorrect interpretation of list, tuples, and dictionaries literals #30
Open
@jmi2k

Description

@jmi2k

I write this:

a_list = [
    1,
    2
]

a_tuple = (
    1,
    2
)

a_dict = {
    ("a", 1),
    ("b", 2)
}

print a_list
print a_tuple
print a_dict

I expect this to evaluate to:

[1, 2]
(1, 2)
{'a': 1, 'b': 2}

But instead, only the last element is seen, and I get:

[2]
2
{'b': 2}

This bug can get very annoying if you want to nicely indent them, as you are forced to put them all in the same line.

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

      0