Skip to content

_pyrepl.readline._ReadlineWrapper.get_line_buffer should return a str, not a bytes object #123228

Closed

Description

@cfbolz

Bug report

Bug description:

_pyrepl.readline._ReadlineWrapper.get_line_buffer should return a str, not a bytes object, because readline.get_line_buffer also returns an str, not a bytes.

this has very little effect in CPython, but in PyPy it causes various problem, because we don't have a readline module at all, and use _pyrepl.readline instead.

I'm working on a PR.

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Aug 22, 2024
  2. added a commit that references this issue on Aug 24, 2024
  3. skirpichev commented on Aug 24, 2024

    @skirpichev
    Member

    I took liberty to post a pr: #123281

  4. added a commit that references this issue on Aug 24, 2024
  5. added a commit that references this issue on Aug 24, 2024
  6. added a commit that references this issue on Aug 24, 2024
  7. cfbolz commented on Aug 24, 2024

    @cfbolz
    ContributorAuthor

    this is now fixed, thanks everyone!

  8. cfbolz commented on Aug 24, 2024

    @cfbolz
    ContributorAuthor

    Ouch, there's a leaking file descriptor in the new test: #123281 (comment)
    I know where, can fix it.

  9. reopened this on Aug 24, 2024
  10. added a commit that references this issue on Aug 25, 2024
  11. added a commit that references this issue on Aug 25, 2024
  12. added a commit that references this issue on Aug 25, 2024
  13. cfbolz commented on Aug 25, 2024

    @cfbolz
    ContributorAuthor

    ok, hopefully we're actually done this time.

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

    topic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions