Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

KeyError 'yy' when trying invoke help() #882

Copy link
Copy link
@snimark

Description

@snimark
Issue body actions

For bpython 0.21, I merely open up the interpreter and type help(). As soon as I type the left parenthesis, it spits out the KeyError.

I am on a MacBook using Catalina and have installed bpython using homebrew.

 % bpython --version
bpython version 0.21 on top of Python 3.9.1 /usr/local/opt/python@3.9/bin/python3.9
(C) 2008-2020 Bob Farrell, Andreas Stuehrk, Sebastian Ramacher, Thomas Ballinger, et al. See AUTHORS.rst for details.

>>> help
Traceback (most recent call last):
  File "/usr/local/Cellar/bpython/0.21/libexec/bin/bpython", line 8, in <module>
    sys.exit(main())
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsies.py", line 201, in main
    exit_value = repl.mainloop(True, paste)
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsies.py", line 118, in mainloop
    self.process_event_and_paint(e)
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsies.py", line 95, in process_event_and_paint
    array, cursor_pos = self.paint()
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsiesfrontend/repl.py", line 1644, in paint
    infobox = paint.paint_infobox(
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsiesfrontend/replpainter.py", line 201, in paint_infobox
    formatted_argspec(funcprops, arg_pos, width, config)
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsiesfrontend/replpainter.py", line 103, in formatted_argspec
    punctuation_color = func_for_letter(config.color_scheme["punctuation"])
  File "/usr/local/Cellar/bpython/0.21/libexec/lib/python3.9/site-packages/bpython/curtsiesfrontend/parse.py", line 32, in func_for_letter
    return partial(fmtstr, fg=CNAMES[l.lower()], bold=l.isupper())
KeyError: 'yy'
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.