A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006310.html below:

[Python-Dev] simple syntax error bombs interpreter

[Python-Dev] simple syntax error bombs interpreter [Python-Dev] simple syntax error bombs interpreterPeter Schneider-Kamp peter@schneider-kamp.de
Thu, 13 Jul 2000 00:42:28 +0000
Vladimir Marangozov wrote:
> 
> Fredrik Lundh wrote:
> >
> > using my latest Python 2.0 build, the interpreter
> > bombs if I type the following two commands:
> >
> > >>> def a(b):
> > ...     global b
> > ...
> >
> > (1.5.2 says "name is local and global").
> >
> > </F>

That's the same kind of situation I had with my

>>> def f(a,a):
...     print a
segfault

> The appended patch should fix it. Let me know whether it works for you.

The appended patch works for me. Now my "duplicate arguments" error
also works fine.

Is there an issue with removing the PyErr_Clear()? Does it serve
any just purpose?

if-not-please-get-rid-of-it-ly y'rs
Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter@schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4