[issue6367] Change the instruction pointer in python
vinoth
report at bugs.python.org
Tue Jun 30 08:06:35 CEST 2009
vinoth <4vinoth at 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 <report at bugs.python.org>wrote:
>
> Martin v. Löwis <martin at 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 <report at bugs.python.org>
> <http://bugs.python.org/issue6367>
> _______________________________________
>
----------
Added file: http://bugs.python.org/file14403/unnamed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6367>
_______________________________________
-------------- next part --------------
<br>I hope exceptions are not created for that purpose,and it is not the actual<b>/</b>right way i hope. because, <br><br>if any of the called methods has the try: except: block, it fails.. <br><br>and we can't guide other coders, "Don't use try: except:" as it is the language neutral power.<br>
<br>But it is easy to implement. Just do as we do in case of exception, but in a user defined way. I hope.<br><br>Thanks<br>Vinoth<br><br><div class="gmail_quote">On Tue, Jun 30, 2009 at 2:41 AM, Martin v. Löwis <span dir="ltr"><<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Martin v. Löwis <<a href="mailto:martin at v.loewis.de">martin at v.loewis.de</a>> added the comment:<br>
<br>
Actually, Python has non-local gotos already, and in a structured way:<br>
by means of exceptions. I don't understand why it is "not a actual way"<br>
- please do consider using a custom exception for that.<br>
<br>
----------<br>
nosy: +loewis<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker <<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>><br>
<<a href="http://bugs.python.org/issue6367" target="_blank">http://bugs.python.org/issue6367</a>><br>
_______________________________________<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>vin<br>
More information about the Python-bugs-list
mailing list