Skip to content

bpython-curses is not working on windows 10: it deletes the current line and returns back at the start of the history #859

Closed

Description

@giuliohome

If you type and underscore in the name of a function

def public_` # I want def public_ip():

it deletes the current line and returns back at the start of the history.

after I have typed a dot it shows the possible completions but when I digit a capital P it deletes the current line and returns back at the start of the history.

http = urllib3.P # I want http = urllib3.PoolManager()

Note
Actually this is a big problem of bpython-curses also on Linux (I've tested it on my Fedora 32, last version) and indeed it is deprecated, but the crucial point is that the real bpython is running on Linux but not on Windows.

Activity

  1. changed the title [-]bpython-curses is not working on windows 10: it deletes the current line and returns back at the start of the hystory[/-] [+]bpython-curses is not working on windows 10: it deletes the current line and returns back at the start of the history[/+] on Nov 6, 2020
  2. added this to the release-0.21 milestone on Nov 8, 2020
  3. added a commit that references this issue on Nov 10, 2020
    23f681e
  4. bjhend commented on Nov 18, 2020

    @bjhend

    I've observed the same behavior with bpython-curses but not only with underscore and capital P. In addition this happens also with A, E, G, K, N, and Y (all capital).

    Versions:
    Python 3.8.3
    bcrypt 3.2.0
    blessings 1.7
    bpython 0.20
    certifi 2020.11.8
    cffi 1.14.3
    chardet 3.0.4
    cryptography 3.2.1
    curtsies 0.3.4
    greenlet 0.4.17
    idna 2.10
    paramiko 2.7.2
    pip 20.2.4
    pycparser 2.20
    Pygments 2.7.2
    PyNaCl 1.4.0
    requests 2.24.0
    setuptools 41.2.0
    six 1.15.0
    urllib3 1.25.11
    wcwidth 0.2.5
    windows-curses 2.2.0

  5. giuliohome commented on Nov 18, 2020

    @giuliohome
    Author

    @bjhend I've upgraded to the latest version of the package and I confirm that this bug has been fixed.
    Thanks to the developers

  6. giuliohome commented on Nov 18, 2020

    @giuliohome
    Author

    I've observed the same behavior with bpython-curses but not only with underscore and capital P. In addition this happens also with A, E, G, K, N, and Y (all capital).

    Of course, it is all the letters in "KEY_NPAGE" and "KEY_PPAGE", have you seen the fiix?

    elif key in ("KEY_NPAGE",)
    

    the comma (added as a fix) transforms what was wrongly a string (a list of chars) into a correct tuple, in this case a one-element tuple

    Versions:

    bpython 0.20

    @bjhend
    Please upgrade to bpython 0.20.1

  7. bjhend commented on Nov 18, 2020

    @bjhend

    Upgrading solved it for me as well, thanks.

  8. bjhend commented on Nov 18, 2020

    @bjhend

    Yes, I've looked at the fix (tried it manually first) but didn't compare the letters. Sometimes bugs have funny effects.

  9. giuliohome commented on Nov 18, 2020

    @giuliohome
    Author

    immagine

  10. bjhend commented on Nov 18, 2020

    @bjhend

    Thanks for the hint. As I said, after upgrading to bpython 0.20.1 as well as after applying the fix manually beforehand, it worked or me.

  11. added a commit that references this issue on Feb 25, 2026
    e66dc0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions