Beeping the console

Peter Kleiweg in.aqua.scribis at nl.invalid
Tue Aug 31 23:37:40 CEST 2004

Jeffrey Barish schreef:

> What is the easiest way to beep the console from a Python program (i.e.,
> to do the same thing as echo -e \a)?

import sys

or if you don't mind a newline:

print '\a'

Peter Kleiweg  L:NL,af,da,de,en,ia,nds,no,sv,(fr,it)  S:NL,de,en,(da,ia)

More information about the Python-list mailing list