[pypy-dev] unable to translate due to isinstance call

Maciej Fijalkowski fijall at gmail.com
Fri Oct 26 20:27:30 CEST 2012


On Fri, Oct 26, 2012 at 8:04 PM,  <wlavrijsen at lbl.gov> wrote:
> Hi,
>
> my translation run fails with:
>
>   -> assert s_value.contains(self.bindings[arg])
>
> where s_value = SomeBool(knowntypedata={}) and self.bindings[arg] is
> SomeBool(const=True, knowntypedata={}).
>
> The cause is this:
>
>   if isinstance(self.functions[0], CPPFunction):
>
> where the s_value above is op.result coming the isinstance() call.
>
> With moving things around, the problem comes and goes (hence I thought I
> had it fixed already, but it came back ...).
>
> Checking other calls to isinstance() in other modules, I can't see why it
> would not be allowed here? Also, what would be the difference between a
> const and a non-const bool?
>
> Any hints to get around this one are much appreciated!
>
> Thanks,
>      Wim
> --
> WLavrijsen at lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> http://mail.python.org/mailman/listinfo/pypy-dev

Hey.

Can you give me the exact branch and revision so I can try? It depends
a bit on the full traceback.


More information about the pypy-dev mailing list