[pypy-dev] py.py py.py

Sanghyeon Seo sanxiyn at gmail.com
Tue Apr 5 06:05:29 CEST 2005


With revision 10311, py.py py.py runs again, but fails to print 1.

As it takes more than 100 minutes to start up in my 23400 pystones machine,
I am not patient enough to debug this...

tinuviel at debian:~/pypy/dist/pypy/interpreter$ ./py.py py.py
faking <type 'unicode'>
faking <type 'module'>
faking <type 'file'>
faking <type 'posix.stat_result'>
faking <type 'posix.statvfs_result'>
faking <type '_sre.SRE_Pattern'>
faking <type 'function'>
faking <pypy type 'unicode'>
faking <pypy type 'module'>
PyPy in StdObjSpace on top of Python 2.3.4 (startupttime: 6103.75 secs)
>>>>>1
faking <pypy type 'file'>
Traceback (most recent call last):
  File "py.py", line 90, in main_
    con.interact(banner)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/interactive.py",
line 137, in interact
    code.InteractiveConsole.interact(self, banner)
  File "/home/tinuviel/pypy/dist/lib-python-2.3.4/code.py", line 239,
in interact
    more = self.push(line)
  File "/home/tinuviel/pypy/dist/lib-python-2.3.4/code.py", line 261, in push
    more = self.runsource(source, self.filename)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/interactive.py",
line 221, in runsource
    self.runcode(code)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/interactive.py",
line 169, in runcode
    pycode.exec_code(self.space, self.w_globals, self.w_globals)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/eval.py", line 24,
in exec_code
    return frame.run()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/eval.py", line 70, in resume
    result = self.eval(executioncontext)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyframe.py", line 97, in eval
    self.dispatch()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
57, in dispatch
    fn(self)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
283, in PRINT_EXPR
    print_expr(f.space, w_expr)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/gateway.py", line
528, in appcaller
    return space.call_args(w_func, args)
  File "/home/tinuviel/pypy/dist/pypy/objspace/descroperation.py",
line 88, in call_args
    return w_obj.call_args(args)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/function.py", line
40, in call_args
    return frame.run()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/eval.py", line 70, in resume
    result = self.eval(executioncontext)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyframe.py", line 97, in eval
    self.dispatch()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
54, in dispatch
    fn(self, oparg)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
642, in CALL_FUNCTION
    w_result = f.space.call_args(w_function, args)
  File "/home/tinuviel/pypy/dist/pypy/objspace/descroperation.py",
line 88, in call_args
    return w_obj.call_args(args)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/function.py", line
40, in call_args
    return frame.run()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/gateway.py", line 231, in run
    w_result = self._run()
  File "</home/tinuviel/pypy/dist/py/code/source.py:213>", line 3, in
_run_UWS_ObjSpace_W_Root
  File "/home/tinuviel/pypy/dist/pypy/module/sys2/hook.py", line 8, in
displayhook
    print_item_to(space, space.repr(w_obj), sys_stdout(space))
  File "/home/tinuviel/pypy/dist/pypy/interpreter/gateway.py", line
528, in appcaller
    return space.call_args(w_func, args)
  File "/home/tinuviel/pypy/dist/pypy/objspace/descroperation.py",
line 88, in call_args
    return w_obj.call_args(args)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/function.py", line
40, in call_args
    return frame.run()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/eval.py", line 70, in resume
    result = self.eval(executioncontext)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyframe.py", line 97, in eval
    self.dispatch()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
54, in dispatch
    fn(self, oparg)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
642, in CALL_FUNCTION
    w_result = f.space.call_args(w_function, args)
  File "/home/tinuviel/pypy/dist/pypy/objspace/descroperation.py",
line 88, in call_args
    return w_obj.call_args(args)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/function.py", line
40, in call_args
    return frame.run()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/eval.py", line 70, in resume
    result = self.eval(executioncontext)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyframe.py", line 97, in eval
    self.dispatch()
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
54, in dispatch
    fn(self, oparg)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/pyopcode.py", line
502, in LOAD_ATTR
    w_value = f.space.getattr(w_obj, w_attributename)
  File "/home/tinuviel/pypy/dist/pypy/objspace/descroperation.py",
line 120, in getattr
    w_descr = space.lookup(w_obj, '__getattribute__')
  File "/home/tinuviel/pypy/dist/pypy/objspace/std/objspace.py", line
250, in lookup
    w_type = w_obj.getclass(self)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/baseobjspace.py",
line 29, in getclass
    return space.gettypeobject(self.typedef)
  File "/home/tinuviel/pypy/dist/pypy/objspace/std/objspace.py", line
153, in gettypeobject
    self._typecache)
  File "/home/tinuviel/pypy/dist/pypy/interpreter/baseobjspace.py",
line 103, in loadfromcache
    return cache.getorbuild(key, builder, self)
  File "/home/tinuviel/pypy/dist/pypy/tool/cache.py", line 26, in getorbuild
    result = builder(key, stuff)
  File "/home/tinuviel/pypy/dist/pypy/objspace/std/stdtypedef.py",
line 85, in buildtypeobject
    dict_w[descrname] = w(descrvalue)
  File "/home/tinuviel/pypy/dist/pypy/objspace/std/objspace.py", line
205, in wrap
    return ft(self, x)
  File "/home/tinuviel/pypy/dist/pypy/objspace/std/fake.py", line 152,
in __init__
    self.name = d.__name__
AttributeError: 'FakeDescriptor' object has no attribute '__name__'



More information about the Pypy-dev mailing list