set(T).items() returns all a list of all items of a set. This is the same as list(aset)
dict(A.items(B) d) returns a list of pairs. Each pair consist of one key and the accoring value of the dictionary d. The order of the items is implementation specific but reflects the order of keys() and values().
