[issue6367] Change the instruction pointer in python

2009-06-29 Thread vinoth

New submission from vinoth <4vin...@gmail.com>:

HI all 

I am not the too technical guy, but thinking about the new way of
controlling the flow instead of throwing an error.

as of now if we need to break a control and go back exceptions helps,
but it is not a actual way. 

it would be great if we have a control over the frames execution, I mean

A  calls B calls C calls D 

at that point if we think to move directly to B (what error handler do
if that B has the handler defined of the error), changing the frames
instruction pointer to back to the B's position (in python code without
raising an exception) is a really useful for this web applications.

Please excuse me if we have this control already, (can u explain?)

Thanks 
Vinoth

--
components: Interpreter Core
messages: 89833
nosy: vinoth
severity: normal
status: open
title: Change the instruction pointer in python
type: feature request
versions: Python 3.2

___
Python tracker 
<http://bugs.python.org/issue6367>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6367] Change the instruction pointer in python

2009-06-29 Thread vinoth

vinoth <4vin...@gmail.com> added the comment:

I hope exceptions are not created for that purpose,and it is not the actual*
/*right way i hope. because,

if any of the called methods has the try: except: block, it fails..

and we can't guide other coders, "Don't use try: except:" as it is the
language neutral power.

But it is easy to implement.  Just do as we do in case of exception, but in
a user defined way. I hope.

Thanks
Vinoth

On Tue, Jun 30, 2009 at 2:41 AM, Martin v. Löwis wrote:

>
> Martin v. Löwis  added the comment:
>
> Actually, Python has non-local gotos already, and in a structured way:
> by means of exceptions. I don't understand why it is "not a actual way"
> - please do consider using a custom exception for that.
>
> --
> nosy: +loewis
>
> ___
> Python tracker 
> <http://bugs.python.org/issue6367>
> ___
>

--
Added file: http://bugs.python.org/file14403/unnamed

___
Python tracker 
<http://bugs.python.org/issue6367>
___I hope exceptions are not created for that purpose,and it is not the 
actual/right way i hope. because, if any of the called methods 
has the try: except: block, it fails.. and we can't guide other 
coders, "Don't use try: except:" as it is the language neutral 
power.
But it is easy to implement.  Just do as we do in case of exception, but 
in a user defined way. I hope.ThanksVinothOn Tue, Jun 30, 2009 at 2:41 AM, Martin v. Löwis <mailto:rep...@bugs.python.org";>rep...@bugs.python.org> 
wrote:

Martin v. Löwis <mailto:mar...@v.loewis.de";>mar...@v.loewis.de> added the 
comment:

Actually, Python has non-local gotos already, and in a structured way:
by means of exceptions. I don't understand why it is "not a actual 
way"
- please do consider using a custom exception for that.

--
nosy: +loewis

___
Python tracker <mailto:rep...@bugs.python.org";>rep...@bugs.python.org>
<http://bugs.python.org/issue6367"; 
target="_blank">http://bugs.python.org/issue6367>
___
-- vin
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6367] Change the instruction pointer in python

2009-06-30 Thread vinoth

vinoth <4vin...@gmail.com> added the comment:

HI

Exceptions are doing exactly the right way. but what I am telling is a new
way of flow control which no languages currently having.

On Tue, Jun 30, 2009 at 12:14 PM, Martin v. Löwis 
wrote:

>
> Martin v. Löwis  added the comment:
>
> So there is a language feature there already that solves your problem
> exactly, and you don't want to use it? Exceptions are *exactly* the
> right way to provide non-local gotos in a structured manner.
>
> I'm opposed to any change to the language because the desired feature is
> already there. Use it. Don't tell that it is the wrong way, it is
> exactly the right way.
>
> --
>
> ___
> Python tracker 
> <http://bugs.python.org/issue6367>
> ___
>

--
Added file: http://bugs.python.org/file14408/unnamed

___
Python tracker 
<http://bugs.python.org/issue6367>
___HIExceptions are doing exactly the right way. but what I am telling is 
a new way of flow control which no languages currently having.On Tue, Jun 30, 2009 at 12:14 PM, Martin v. Löwis <mailto:rep...@bugs.python.org";>rep...@bugs.python.org> 
wrote:

Martin v. Löwis <mailto:mar...@v.loewis.de";>mar...@v.loewis.de> added the 
comment:

So there is a language feature there already that solves your problem
exactly, and you don't want to use it? Exceptions are *exactly* the
right way to provide non-local gotos in a structured manner.

I'm opposed to any change to the language because the desired feature is
already there. Use it. Don't tell that it is the wrong way, it is
exactly the right way.

--

___
Python tracker <mailto:rep...@bugs.python.org";>rep...@bugs.python.org>
<http://bugs.python.org/issue6367"; 
target="_blank">http://bugs.python.org/issue6367>
___
-- vin
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com