From: Steve Y. <st...@ca...> - 2001-12-16 17:57:05
|
Oh, that makes sense. I do a lot of exec() and eval() from the command line in my game; it never occurred to me that I might be producing these tracebacks myself by typing the arguments incorrectly. I'll keep an eye out for this. Thanks, -steve Ype Kingma writes: > Steve, > > >I get these a lot: > > > > Traceback (innermost last): > > (no code object) at line 0 > > TypeError: remove() not enough arguments; expected 2 got 1 > > > >I really wish I could get a full stack trace, since this > >gives me *no* information about where the problem lies. > > The problem is what is says: there is an invocation or remove() > with one instead of two arguments. > The "(no code object) at line 0" seems to indicate that you > are generating some code. Are you using exec or execfile() or eval()? > Somehow jython is not able to generate (or use) the code needed for execution > (all code is first compiled to java byte codes and then executed.) > > Could you indicate what kind of change triggered your problem, eg. > - did you change some code, or > - did you install another version of jython? > > >Ideas? > > I can only guess, I need some more info. > > Regards, > Ype |