examples/topology: define socketIds and siblingsIds as setsv11.4.0
commita66fcfaf2bd106649bc6d0b76e916ba80c962b80
authorAriel Otilibili <[email protected]>
Sat, 17 May 2025 15:34:56 +0000 (17 17:34 +0200)
committerMichal Prívozník <[email protected]>
Tue, 27 May 2025 11:57:59 +0000 (27 13:57 +0200)
tree2157e0d235047847093179f6d5afb0f2c7664e48
parentcbcafe129b8bf26df85119b392a59451d4fc1f9f
examples/topology: define socketIds and siblingsIds as sets

socketIds and siblingsIds are declared as empty lists, filled by
list comprehensions, and later on re-used as sets.

They could be directly obtained from set comprehensions.

Fixes: 34aa32b ("Move python example programs into python/examples/ subdirectory")
Fixes: 3f4e32c ("examples: Invoke print("...") instead of print "..."")
Link: https://docs.python.org/3/tutorial/datastructures.html#sets
Signed-off-by: Ariel Otilibili <[email protected]>
Signed-off-by: Michal Privoznik <[email protected]>
Reviewed-by: Michal Privoznik <[email protected]>
examples/topology.py