[Python-Dev] API for binary operations on Sets (original) (raw)

Raymond Hettinger raymond.hettinger at gmail.com
Thu Sep 30 06:54:01 CEST 2010


On Sep 29, 2010, at 11:29 PM, Terry Reedy wrote:

I do not understand this. List.add is currently more restrictive than set ops in that it will not even accept a 'frozenlist' (aka tuple).

Sorry, that should have been iadd().

s = range(5) s += 'abc' s [0, 1, 2, 3, 4, 'a', 'b', 'c']

Raymond



More information about the Python-Dev mailing list