
Aug. 7, 2012
8:25 p.m.
The 'set' class has a 'discard' method, but dict doesn't. I know that I can just delete the key and catch the exception if it's absent, but I can also 'remove' a member from a set and catch the exception if it's absent, OR just 'discard' it to avoid an exception. How much interest would there be in adding 'discard' to dict too?
4607
Age (days ago)
4607
Last active (days ago)
2 comments
2 participants
participants (2)
-
Laurens Van Houtven
-
MRAB