advice on this little script

Ben Cartwright bencvt at
Thu Mar 9 05:37:31 CET 2006

BartlebyScrivener wrote:
> What about a console beep? How do you add that?
> rpd

Just use ASCII code 007 (BEL/BEEP):

  >>> import sys
  >>> sys.stdout.write('\007')

Or if you're on Windows, use the winsound standard module.


More information about the Python-list mailing list