[pypy-dev] understanding and fixing rtyper warnings

Alex Gaynor alex.gaynor at gmail.com
Thu Apr 4 01:25:39 CEST 2013


Not your fault, those occur on default as well. I don't know of any way to
get better messages.

Alex


On Wed, Apr 3, 2013 at 4:20 PM, <wlavrijsen at lbl.gov> wrote:

> Hi,
>
> say I have something like this during translation:
>
> [rtyper:WARNING] SomeInstance(can_be_None=True, classdef=pypy.interpreter.
> **baseobjspace.W_Root) can be null, but forcing non-null in dict key
> [rtyper:WARNING] SomeInstance(can_be_None=True, classdef=pypy.interpreter.
> **baseobjspace.W_Root) can be null, but forcing non-null in dict value
> [rtyper:WARNING] SomeInstance(can_be_None=True, classdef=pypy.interpreter.
> **baseobjspace.W_Root) can be null, but forcing non-null in dict key
> [rtyper:WARNING] SomePBC(can_be_None=True, const=None, subset_of=None) can
> be null, but forcing non-null in dict value
>
> what are my chances to find out whether a) my code is responsible, and b)
> if
> there's anything that can be done about it? I.e. is there are way of
> getting
> more information, like file name and line number?
>
> I tried finding the locations where I do not enforce can_be_None=False and
> if
> the result is put in a dictionary, but there's nothing that stands out.
>
> 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<http://mail.python.org/mailman/listinfo/pypy-dev>
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130403/fff98a60/attachment.html>


More information about the pypy-dev mailing list