This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Alarm usage
Type: behavior Stage: resolved
Components: Regular Expressions Versions: Python 3.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, mrabarnett, shivsidhi, steven.daprano
Priority: normal Keywords:

Created on 2019-01-03 04:57 by shivsidhi, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg332907 - (view) Author: Siva (shivsidhi) Date: 2019-01-03 04:57
'\a' in a command line gives  '\x07' in response.Tried '\a' in a calci programe but response gives me enter a valid data and a small box but o alarm. Do we have any ways to rectify the same. if so please let me know.

print('enter a value from the below list\n')
a = input('enter a value + , - ')

if a!= '+' and a!= '-' :
    print ('enter a valid data \a')
elif a == '+':
    b = eval(input('enter first value'))
    c=eval(input('enter 2nd value'))
    add = b+c
    print (b,'+',c,'=',add)
elif a== '-':
    b = eval(input('enter first value'))
    c=eval(input('enter 2nd value'))
    sub=b-c
    print (b,'-',c,'=',sub)
msg332912 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2019-01-03 07:21
This bug report is incoherent. This has nothing to do with alarms or regular expressions, and I don't know what your code is supposed to do or what results you are expecting. What's "a calci programe"?

You ask: 

"Do we have any ways to rectify the same. if so please let me know."

First of all, rectify *what*? I don't understand what problem you think you are having. And secondly, this is for reporting bugs in the Python interpreter and libraries, not for asking for help with bugs in your own code.

I'm going to close this bug report now. If you believe it is actually a bug in the interpreter, then please explain what behaviour you expect and show the exact behaviour you get, including any traceback. COPY AND PASTE the code and any errors, don't summarise them or retype them from memory.

If you want help with your own code, I suggest:

https://old.reddit.com/r/learnpython/

https://mail.python.org/mailman/listinfo/tutor

https://mail.python.org/mailman/listinfo/python-list
msg332927 - (view) Author: Matthew Barnett (mrabarnett) * (Python triager) Date: 2019-01-03 12:57
@Steven: The complaint is that the BEL character ('\a') doesn't result in a beep when printed.

@Siva: These days, you shouldn't be relying on '\a' because it's not always supported. If you want to make a beep, do so with the appropriate function call. Ask Google!
History
Date User Action Args
2022-04-11 14:59:09adminsetgithub: 79826
2019-01-03 12:57:14mrabarnettsetmessages: + msg332927
2019-01-03 07:24:15steven.dapranosetstatus: open -> closed
resolution: not a bug
stage: resolved
2019-01-03 07:21:42steven.dapranosetnosy: + steven.daprano
messages: + msg332912
2019-01-03 04:57:40shivsidhicreate