On Thu, Apr 4, 2013 at 1:25 AM, Alex Gaynor <alex.gay...@gmail.com> wrote: > Not your fault, those occur on default as well. I don't know of any way to > get better messages. > > Alex
The problem is that in dicts (rpython dicts responsible for W_DictObject and W_SetObject), we want to know that keys are non-null. We already do, noone stores null there, but the annotator doesn't know. I have a bit no clue how to find out all the places that pass W_Root-or-None instead of W_Root as keys (or values), but I don't care. Maybe we should just disable this warning. > > > On Wed, Apr 3, 2013 at 4:20 PM, <wlavrij...@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 >> -- >> wlavrij...@lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.net >> _______________________________________________ >> pypy-dev mailing list >> pypy-dev@python.org >> 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 > > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > http://mail.python.org/mailman/listinfo/pypy-dev > _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev