[pypy-issue] [issue798] RPython: DictRepr instance has no attribute ll_str

David Griffin tracker at bugs.pypy.org
Tue Jul 19 14:30:45 CEST 2011


New submission from David Griffin <habilain at gmail.com>:

Trying to translate the following code generates the unhelpful error message
"AttributeError: DictRepr instance has no attribute ll_str". 

def main(x):
  print {}
  return 0

def target(*args):
    return (main, None)

Cause: Dicts cannot be converted to strings in RPython, so the print fails.

Note that this bug doesn't have to be fixed; if nothing else, this bug report
will serve well in helping people find why their code won't translate, as the
only other reference to this error is an unsolved question in the PyPy IRC logs.

----------
messages: 2820
nosy: habilain, pypy-issue
priority: bug
status: chatting
title: RPython: DictRepr instance has no attribute ll_str

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue798>
________________________________________


More information about the pypy-issue mailing list