Don't use it:
>>> a = [1, 1, 1, 2, 2]
>>> a = set(a)
>>> a.discard(2)
>>> a
set([1])
>>> list(a)
[1] # You lost two element!

2009/6/1 Luke Zhang <[email protected]>

> a = set(a)
> a.discard("b")
> a = list(a)
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to