[Python-ideas] set.add() return value
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Feb 17 14:43:09 CET 2009
What about:
old_len = len(s)
s.add(elem)
if len(s) != old_len:
...
--
Marcin Kowalczyk
qrczak at knm.org.pl
http://qrnik.knm.org.pl/~qrczak/
More information about the Python-ideas
mailing list