Python Forum
What for a file that prints nothing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What for a file that prints nothing
#2
That's a pretty old library, and doesn't work on macOS (just tried it). You might want to look at a more recent alternative (which I think might be based on the ActiveState recipe you shared).

readchar 2.0.1 on PyPi

I tried it in the shell, and it worked fine with this code:
import readchar
while True:
    key = readchar.readkey()
    if key == " ": break
Obviously, I could print whatever character was read (assuming it was printable character).
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
What for a file that prints nothing - by sylas - Sep-12-2018, 07:04 AM
RE: What for a file that prints nothing - by gruntfutuk - Sep-12-2018, 01:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  zfill prints extra et the end of a var tester_V 4 850 Mar-24-2023, 06:59 PM
Last Post: tester_V
  variable prints without being declared. ClockPillow 2 1,771 Jul-11-2021, 12:13 AM
Last Post: ClockPillow
  Output prints Account.id at the end? LastStopDEVS 5 2,718 Dec-19-2020, 05:59 AM
Last Post: buran
  Try/Exept prints only ones tester_V 11 3,738 Nov-03-2020, 02:38 AM
Last Post: tester_V
  loop only prints last character. mcmxl22 1 1,674 Feb-17-2020, 02:36 AM
Last Post: menator01
  zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ? Rsh 9 4,005 Jun-27-2019, 02:00 PM
Last Post: Rsh
  can you understand why this code prints None? arcbal 2 2,700 Mar-13-2019, 02:57 AM
Last Post: arcbal

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020