summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src5/TestSCons.java
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-04-24 13:11:27 (GMT)
committerMats Wichmann <mats@linux.com>2020-06-25 18:10:59 (GMT)
commit6e9ec5150f90504e38b52c43ff340ce3e047e30e (patch)
tree864141daa89a3b12dbd7c4029bf0ded81573a2c6 /test/Java/java_version_image/src5/TestSCons.java
parentea9c0e01637307fe7bfc068a43e42d0f3ed36a16 (diff)
downloadSCons-6e9ec5150f90504e38b52c43ff340ce3e047e30e.zip
SCons-6e9ec5150f90504e38b52c43ff340ce3e047e30e.tar.gz
SCons-6e9ec5150f90504e38b52c43ff340ce3e047e30e.tar.bz2
Add keys() and values() to environment
A construction environment provides a method items() which gives you back the k, v pairs from the internal _dict, helping an env behave like a dictionary. This adds the keys() and values() methods to SubstitutionEnvironment (which is the "real" consenv) and OverrideEnvironment to further emulate a dictionary. These methods don't need to convert to list here, the caller can do that itself if it doesn't want a Py3 view object. Add tests, and tweak the existing test a bit. Also in a couple of places in Environment.py, don't loop over a view into a dict that is being changed (del) - loop over the key view object from a copy instead. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src5/TestSCons.java')
0 files changed, 0 insertions, 0 deletions