Bläddra i källkod

added copy function to _dict

version-14
Nabin Hait 12 år sedan
förälder
incheckning
adcad93d78
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. +2
    -0
      webnotes/__init__.py

+ 2
- 0
webnotes/__init__.py Visa fil

@@ -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


Laddar…
Avbryt
Spara