Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.9: missing set_escdelay + set_tabsize #17

Open
asottile opened this issue Nov 7, 2020 · 1 comment
Open

python3.9: missing set_escdelay + set_tabsize #17

asottile opened this issue Nov 7, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@asottile
Copy link

asottile commented Nov 7, 2020

These are new APIs that I added in python3.9, they are currently missing:

python/cpython#16938

currently this is breaking my text editor babi on windows with a trace that looks like this:

(venv39) C:\Users\Anthony\workspace\babi>babi
Traceback (most recent call last):
  File "c:\users\anthony\workspace\babi\babi\screen.py", line 620, in make_stdscr
    yield _init_screen()
  File "c:\users\anthony\workspace\babi\babi\screen.py", line 597, in _init_screen
    curses.set_escdelay(25)
AttributeError: module 'curses' has no attribute 'set_escdelay'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Anthony\workspace\babi\venv39\Scripts\babi-script.py", line 33, in <module>
    sys.exit(load_entry_point('babi', 'console_scripts', 'babi')())
  File "c:\users\anthony\workspace\babi\babi\main.py", line 147, in main
    with perf_log(args.perf_log) as perf, make_stdscr() as stdscr:
  File "C:\python39\lib\contextlib.py", line 117, in __enter__
    return next(self.gen)
  File "c:\users\anthony\workspace\babi\babi\screen.py", line 622, in make_stdscr
    curses.endwin()
_curses.error: must call initscr() first
@stephanosio stephanosio added the enhancement New feature or request label Nov 3, 2022
@flengyel
Copy link

The missing set_escdelay() also breaks https://github.com/flengyel/RYLR998-LoRa under Windows. I'm running Python 3.11.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants