[Python-Dev] simple syntax error bombs interpreter
Peter 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