Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ set_default
Method
set_default
Lib/optparse.py:1284–1285 ·
view source on GitHub ↗
(self, dest, value)
Source
from the content-addressed store, hash-verified
1282
self.process_default_values = process
1283
1284
def
set_default(self, dest, value):
1285
self.defaults[dest] = value
1286
1287
def
set_defaults(self, **kwargs):
1288
self.defaults.update(kwargs)
Callers
3
test_parser_default_1
Method · 0.80
test_count_with_default
Method · 0.80
test_count_overriding_default
Method · 0.80
Calls
no outgoing calls
Tested by
3
test_parser_default_1
Method · 0.64
test_count_with_default
Method · 0.64
test_count_overriding_default
Method · 0.64