asweigart / bext

A cross-platform Python 2/3 module for colorful, text-based terminal programs.
Other
18 stars 2 forks source link

Python 3.10.7 sys.out.write error #6

Open panabar opened 2 years ago

panabar commented 2 years ago

Here is an error message from bext module when bext.hide() is used in analogClock.py example.

File` "...Documents/python/tutorial-env/lib/python3.10/site-packages/bext/__init__.py", line 588, in hide
sys.out.write('\033[?25l')
AttributeError: module 'sys' has no attribute 'out'`

Also, if I experiment and change the 'sys.out.write...' to 'sys.stdout.write...' the next line results in the same error message

File "/home/serkank2/Documents/python/tutorial-env/lib/python3.10/site-packages/bext/__init__.py", line 589, in hide
sys.out.flush()
AttributeError: module 'sys' has no attribute 'out'

Thank you for the great resources.