Skip to content

Issue with accessing locals dictionary ... #142778

@oOosys

Description

@oOosys

Bug report

Bug description:

~ $ python3.15 /usr/bin/unicode U+1F680
Traceback (most recent call last):
File "/usr/bin/unicode", line 1014, in
main()
~~~~^^
File "/usr/bin/unicode", line 1011, in main
print_characters(processed_args, options.maxcount, format_string, options.query_wikipedia, options.query_wiktionary)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/unicode", line 741, in print_characters
formatted_output = format_string.format(**locals())
KeyError: 'yellow'
~ $ python3.10 /usr/bin/unicode U+1F680
U+1F680 ROCKET
UTF-8: f0 9f 9a 80 UTF-16BE: d83dde80 Decimal: 🚀 Octal: \0373200
🚀
Category: So (Symbol, Other); East Asian width: W (wide)
Unicode block: 1F680..1F6FF; Transport and Map Symbols
Bidi: ON (Other Neutrals)

CPython versions tested on:

3.15

Operating systems tested on:

Linux

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