asweigart / asweigart/bext

goto is broken in 0.0.7 for unix/macos

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
21
Forks
3
PR merge metrics
No merged PRs in 30d

Description

in __init__.py, I was able to fix goto by going to line 650 and re-inserting:

elif currentPlatform == 'unix':
# macOS and Linux:
import tty, termios, select, codecs # Used by getKey()
getKey = GetKeyUnix().getkey
goto = _goto_control_code

That restored it and I was able to get the bouncing DVD logo's program from chapter 5 of your book to run then. Not sure what the right fix is, but 0.0.7 appears broken at the moment. It also fixed the example rotating_cube.py too. This is on linux with with python3.9 and bext-0.0.7.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in __init__.py around line 650 and compare the Unix platform branch with the reported restoration. Run the bouncing DVD logo or rotating_cube.py examples on Python 3.9 under Linux, then verify that goto works in bext 0.0.7 for Unix/macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.