[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: Your module token.py "shadowed" the stdlib token.py, and prevented it from being seen until you changed the name. -- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed type: crash -> behavior

[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread Kumar Aditya
Kumar Aditya added the comment: Python has a token module so you should use any other name for your module. -- nosy: +kumaraditya303 ___ Python tracker ___

[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread bichanna
New submission from bichanna : I was developing a programming language using Python, and I had a 'token.py' file. After changing the name of the file, the issue was solved. I am sure that my 'token.py' caused the error. Here's the traceback I got: Traceback (most recent call last): File