misc: Views and Iterators instead of Lists in python3
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 2 Mar 2020 14:30:25 +0000 (14:30 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 13 Mar 2020 14:24:07 +0000 (14:24 +0000)
commit10b484240733131fea4f10d4605285106e0ab890
treec7cc848bf669ae8cd03591bab00cbcd22d5036aa
parente9fea79dfc2ff0c2dcacc8eccd1f83551351d0ab
misc: Views and Iterators instead of Lists in python3

* dict methods dict.keys(), dict.items() and dict.values()
return "views" instead of lists

* The dict.iterkeys(), dict.iteritems() and dict.itervalues()
methods are no longer supported.

* map() and filter() return iterators.

* range() now behaves like xrange() used to behave, except it works with
values of arbitrary size. The latter no longer exists.

* zip() now returns an iterator.

Change-Id: Id480018239db88d7f5d60588c93719056de4a0c0
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26248
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
12 files changed:
SConstruct
site_scons/gem5_scons/__init__.py
src/SConscript
src/arch/arm/fastmodel/SConscript
src/arch/arm/isa/formats/aarch64.isa
src/arch/arm/isa/insts/neon64.isa
src/arch/isa_parser.py
src/arch/x86/isa/formats/multi.isa
src/mem/slicc/symbols/StateMachine.py
src/mem/slicc/symbols/Transition.py
src/mem/slicc/symbols/Type.py
src/python/m5/SimObject.py