python Why doesn’t list have safe „get” method like dictionary?
You could even monkeypatch it onto the __builtins__.list constructor in __main__, but that would be a less pervasive change since most code doesn’t use it. If you just wanted to use this with lists created by your own code you could simply subclass list and add the get method. Therefore,unless you could keep your data […]
Najnowsze komentarze