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

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -