[pypy-dev] [pypy-svn] r48286 - pypy/dist/pypy/rpython

Samuele Pedroni pedronis at openend.se
Sun Nov 4 16:01:48 CET 2007


are you sure this tweak is still correct, I cannot remember the 
intention of this code but I'm sure
it was not as it was for random reasons...

fijal at codespeak.net wrote:
> Author: fijal
> Date: Sun Nov  4 15:16:32 2007
> New Revision: 48286
>
> Modified:
>    pypy/dist/pypy/rpython/rpbc.py
> Log:
> This effectively mutes some rpbc rtyper warnings
>
>
> Modified: pypy/dist/pypy/rpython/rpbc.py
> ==============================================================================
> --- pypy/dist/pypy/rpython/rpbc.py	(original)
> +++ pypy/dist/pypy/rpython/rpbc.py	Sun Nov  4 15:16:32 2007
> @@ -481,8 +481,8 @@
>                  if r_value.lowleveltype is Void:
>                      continue
>                  try:
> -                    thisattrvalue = frozendesc.attrcache[attr]
> -                except KeyError:
> +                    thisattrvalue = frozendesc.read_attribute(attr)
> +                except AttributeError:
>                      warning("Desc %r has no attribute %r" % (frozendesc, attr))
>                      continue
>                  llvalue = r_value.convert_const(thisattrvalue)
> _______________________________________________
> pypy-svn mailing list
> pypy-svn at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-svn
>   




More information about the Pypy-dev mailing list