dictionary - What is a better way to remove key from dict in Python 3.4? -


this question has answer here:

i've found 2 ways of doing it:

del dict[key] 

vs

dict.pop(key) 

which 1 better , why, or maybe there's more?

del faster pop().

have @ discussion best way remove item python dictionary?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -