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.

Author Rogi
Recipients Rogi
Date 2009-02-12.13:00:46
SpamBayes Score 3.614145e-10
Marked as misclassified No
Message-id <1234443648.41.0.597133870232.issue5227@psf.upfronthosting.co.za>
In-reply-to
Content
From teh documentation:
http://docs.python.org/c-api/veryhigh.html

int Py_Main(int argc, char **argv)¶
    The main program for the standard interpreter. This is made
available for programs which embed Python. The argc and argv parameters
should be prepared exactly as those which are passed to a C program’s
main function. It is important to note that the argument list may be
modified (but the contents of the strings pointed to by the argument
list are not). The return value will be the integer passed to the
sys.exit() function, 1 if the interpreter exits due to an exception, or
2 if the parameter list does not represent a valid Python command line.

However, if teh user type sys.exit(whatever), Py_Main() is call exit()
instead of returning, which cause program termination before cleanup and
stuff.
History
Date User Action Args
2009-02-12 13:00:48Rogisetrecipients: + Rogi
2009-02-12 13:00:48Rogisetmessageid: <1234443648.41.0.597133870232.issue5227@psf.upfronthosting.co.za>
2009-02-12 13:00:47Rogilinkissue5227 messages
2009-02-12 13:00:46Rogicreate