Skip to content

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

Description

@snimark

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/[email protected]/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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions