MCPcopy Index your code
hub / github.com/python/cpython / NS

Class NS

Lib/test/test_argparse.py:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143
144
145class NS(object):
146
147 def __init__(self, **kwargs):
148 self.__dict__.update(kwargs)
149
150 def __repr__(self):
151 sorted_items = sorted(self.__dict__.items())
152 kwarg_str = ', '.join(['%s=%r' % tup for tup in sorted_items])
153 return '%s(%s)' % (type(self).__name__, kwarg_str)
154
155 def __eq__(self, other):
156 return vars(self) == vars(other)
157
158
159class ArgumentParserError(Exception):

Calls

no outgoing calls

Tested by 15

testMethod · 0.56
__call__Method · 0.56
__call__Method · 0.56
testMethod · 0.56
test_parse_argsMethod · 0.56
test_parse_known_argsMethod · 0.56
test_abbreviationMethod · 0.56
test_destMethod · 0.56
test_alias_invocationMethod · 0.56
test_nongroup_firstMethod · 0.56
test_group_firstMethod · 0.56