[Python-Dev] simple syntax error bombs interpreter
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
> 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?
Peter Schneider-Kamp ++47-7388-7331
Herman Krags veg 51-11 mailto:email@example.com
N-7050 Trondheim http://schneider-kamp.de