New submission from Rogi:
Hi, I found some info and I thought it might be interesting for you, please
read more at <http://gerdutrihy.itwasbad.com/aeebrrez>
r...@linuxmail.org
--
messages: 266751
nosy: Rogi
priority: normal
severity: normal
status: open
title: interestin
New submission from Rogi:
Hello!
You have a new message, please read <http://www.gazzaz.com.sa/territory.php?v>
r...@linuxmail.org
--
messages: 264455
nosy: Rogi
priority: normal
severity: normal
status: open
title: new message
___
Python t
Rogi added the comment:
Oh, and other functions on this doc, such as PyRun_SimpleStringFlags(),
have this same documentation problem about SystemError.
--
___
Python tracker
<http://bugs.python.org/issue6
Rogi added the comment:
I may be wrong, but I think Py_Main() will _never_ return 1.
--
___
Python tracker
<http://bugs.python.org/issue6498>
___
___
Python-bug
Rogi added the comment:
Fair. Still I dont liek it very much. I will return!
--
___
Python tracker
<http://bugs.python.org/issue6498>
___
___
Python-bugs-list m
Rogi added the comment:
@mhammond
You said:
"The docs are wrong regardless - I don't think anyone would
suggest the behaviour match the docs regarding SystemError -
having Py_Main return on SystemError would be backwards
incompatible."
but
Rogi added the comment:
@mhammond
After reading your post again I noticed you talk about
SystemError and not SystemExit. In fact, Py_Main() should not return on
SystemError. Teh documentation states "if the interpreter exits due to
an exception", which implies teh interpreter
Rogi added the comment:
@mhammond
Maybe its just me but it seems to be a really bad idea to let
those functions terminate your process as they wish. Teh programmer
should be allowed to control teh flow of his application.
However, I am not teh only one affected by this. I
Rogi added the comment:
I reviewed teh problem and rewrote teh text to better explain what is
happening. Also, I noticed teh change to teh docs, and in fact it is
not correct that teh functions call exit() on SystemError.
*** From teh docs:
http://docs.python.org/c-api/veryhigh.html
int
Rogi added the comment:
Sorry, some years have passed since I posted this. I will take a look on teh
code again.
--
___
Python tracker
<http://bugs.python.org/issue6
Rogi added the comment:
@mhammond
Wat did you say?
I tried to fix this issue at teh time with no success. It would require too
much rewriting. I have not found any way to handle exceptions at C level using
this function up to teh present time
Rogi added the comment:
I will try to fix and submit a patch. Just a second =op
--
___
Python tracker
<http://bugs.python.org/issue6498>
___
___
Python-bug
Rogi added the comment:
bump
--
___
Python tracker
<http://bugs.python.org/issue6498>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
Rogi added the comment:
As a workaround, I copied teh function PyRun_InteractiveOneFlags() to my
own source and modified it so it would not print or clear exceptions.
However, I have never found documentation about PyArena* or
PyParser_AST*. Are those functions public or just for internal use
New submission from Rogi :
>From teh docs:
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 th
Changes by Rogi :
--
assignee: -> georg.brandl
components: +Documentation -None
nosy: +georg.brandl
___
Python tracker
<http://bugs.python.org/issue5227>
___
_
New submission from Rogi :
From teh docs:
http://docs.python.org/c-api/veryhigh.html
int PyRun_SimpleStringFlags(const char *command, PyCompilerFlags *flags)¶
Executes the Python source code from command in the __main__ module
according to the flags argument. If __main__ does not already
New submission from Rogi :
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
18 matches
Mail list logo