[pypy-dev] Re: [pypy-svn] r8078 - pypy/trunk/src/pypy/interpreter
hpk at trillke.net
Fri Jan 7 20:30:45 CET 2005
On Fri, Jan 07, 2005 at 19:10 +0000, Armin Rigo wrote:
> On Fri, Jan 07, 2005 at 07:40:09PM +0100, holger krekel wrote:
> > you'll now see (approximately):
> > NameError: global name w_NameError is not defined, but FlowObjSpace
> > has no NameError!
> No, the point is that you'll now see:
> NameError: global name xyzzy is not defined, but FlowObjSpace
> has no NameError!
> where 'xyzzy' is the name of the particular variable in the user source code
> that is not defined.
ah ok, right. But your suggestion of providing a specific
w_NameError (maybe just None) and an appropriate assertion in
OperationError.__init__ still sounds nicer and more generic.
More information about the Pypy-dev