From d143024408944e599f54f4df56968deb9490ff9f Mon Sep 17 00:00:00 2001 From: David Halter Date: Mon, 3 Sep 2012 17:00:37 +0200 Subject: [PATCH] added dict.get, because it returned tuples (don't ask why) --- mixin/builtins.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mixin/builtins.py b/mixin/builtins.py index a5fde049..29e84cbc 100644 --- a/mixin/builtins.py +++ b/mixin/builtins.py @@ -163,6 +163,14 @@ class dict(): # has a strange docstr pass + def get(self, k, d=None): + # TODO implement + try: + #return self.__elements[k] + pass + except KeyError: + return d + #-------------------------------------------------------- # basic types