Skip to content

Dictionary key repr not escaped. #157

@amcgregor

Description

@amcgregor

Seems related to the very old #81 in that certain values (dictionary keys, in our case) are not escaped.

Use of repr() as keys results in apparently no keys. (Web inspector shows that they're being interpreted as HTML.)

MCVE

Enter the following in a presented interactive REPL or traceback:

{'<a href="about:blank">Testing</a>': 'value'}

Or, attempt to use the REPR of a class as keys:

{repr(type): 'value'}

This was exceptionally confusing when our plugin registry showed an empty string for every key.

Screenshot

Screenshot 2022-12-06 at 10 36 38

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