mirror of https://github.com/python/cpython.git
name kwargs kwargs
This commit is contained in:
parent
ad33d72361
commit
3e554d7b8a
|
@ -172,8 +172,8 @@ class Dict:
|
||||||
|
|
||||||
"""Dict wrapper for convenient access of values through attributes."""
|
"""Dict wrapper for convenient access of values through attributes."""
|
||||||
|
|
||||||
def __init__(self, **args):
|
def __init__(self, **kwargs):
|
||||||
self.__dict__.update(args)
|
self.__dict__.update(kwargs)
|
||||||
|
|
||||||
def __cmp__(self, other):
|
def __cmp__(self, other):
|
||||||
if isinstance(other, self.__class__):
|
if isinstance(other, self.__class__):
|
||||||
|
|
Loading…
Reference in New Issue