Przeglądaj źródła

added copy function to _dict

version-14
Nabin Hait 12 lat temu
rodzic
commit
adcad93d78
1 zmienionych plików z 2 dodań i 0 usunięć
  1. +2
    -0
      webnotes/__init__.py

+ 2
- 0
webnotes/__init__.py Wyświetl plik

@@ -50,6 +50,8 @@ class _dict(dict):
"""update and return self -- the missing dict feature in python"""
super(_dict, self).update(d)
return self
def copy(self):
return _dict(super(_dict, self).copy())
def _(s):
return s


Ładowanie…
Anuluj
Zapisz