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: Windows Embeddable Python exit not defined
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Windows: document that site is not imported by default by embeddable distribution
View: 28901
Assigned To: Nosy List: ethan smith, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2016-12-08 08:34 by ethan smith, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg282697 - (view) Author: Ethan Smith (ethan smith) * Date: 2016-12-08 08:34
Hearing about the RC1 today, I downloaded the x64 Windows embeddable zip. I opened a Command Prompt window and ran python.exe to try it out.

I was quite surprised when I ran:
>>>exit()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'exit' is not defined

I read through the notes on the embedded Python releases, but I did not see anything that would lead me to believe that exit should not defined.
 
I also downloaded the distribution for 3.5.2, and did not have the same issue, which leads me to believe this is unintended behavior.

If this behavior is intended, I do apologize for raising this issue.

OS: Windows 10 x64.
msg282711 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2016-12-08 15:27
This is a duplicate of #28901.
History
Date User Action Args
2022-04-11 14:58:40adminsetgithub: 73089
2016-12-08 15:27:19zach.waresetstatus: open -> closed
superseder: Windows: document that site is not imported by default by embeddable distribution
messages: + msg282711

resolution: duplicate
stage: resolved
2016-12-08 08:34:03ethan smithcreate