Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de> Branch: Changeset: r93363:d6474db3c19f Date: 2017-12-11 14:03 +0100 http://bitbucket.org/pypy/pypy/changeset/d6474db3c19f/
Log: explain how to do mark_dict_non_null on r_dicts diff --git a/rpython/rlib/debug.py b/rpython/rlib/debug.py --- a/rpython/rlib/debug.py +++ b/rpython/rlib/debug.py @@ -288,6 +288,9 @@ def mark_dict_non_null(d): """ Mark dictionary as having non-null keys and values. A warning would be emitted (not an error!) in case annotation disagrees. + + This doesn't work for r_dicts. For them, pass + r_dict(..., force_non_null=True) to the constructor. """ assert isinstance(d, dict) return d _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit