Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Emoji entered at prompt causes crash #1018

Open
Labels
moreinfoMore information required from the submitter
@jimratliff

Description

@jimratliff

When running bpython, I tried to enter the following

message = "✅"

This character is: ✅
check mark symbol
Unicode: U+2705, UTF-8: E2 9C 85

But as soon as I entered the emoji itself (without the closing quote or return): I fot:

>>> message = "✅Traceback (most recent call last):  File "<REDACTED_PATH>/venv/bin/bpython", line 8, in <module>    sys.exit(main())             ^^^^^^  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsies.py", line 248, in main    repl.mainloop(True, paste)  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsies.py", line 181, in mainloop    self.process_event_and_paint(e)  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsies.py", line 151, in process_event_and_paint    array, cursor_pos = self.paint()                        ^^^^^^^^^^^^  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsiesfrontend/repl.py", line 1762, in paint    assert cursor_row >= 0 and cursor_column >= 0, (                               ^^^^^^^^^^^^^^^^^^AssertionError: (-1, 153, '>>> message = "✅', 'message = "✅', 12)

In contrast, no problem occurs when I enter the same text into the standard python interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    moreinfoMore information required from the submitter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp