Removed superfluous **kwargs constructor cruft: this class predates

the dict(**kwargs) feature.
This commit is contained in:
Just van Rossum 2004-10-25 16:04:20 +00:00
parent afe73c02a9
commit 10e52dbe28
1 changed files with 0 additions and 8 deletions

View File

@ -258,14 +258,6 @@ class Dict(dict):
to retrieve values, making d.foo equivalent to d["foo"].
"""
def __new__(cls, **kwargs):
self = dict.__new__(cls)
self.update(kwargs)
return self
def __init__(self, **kwargs):
self.update(kwargs)
def __getattr__(self, attr):
try:
value = self[attr]