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

Method __init__

Lib/optparse.py:910–919  ·  view source on GitHub ↗
(self, option_class, conflict_handler, description)

Source from the content-addressed store, hash-verified

908 """
909
910 def __init__(self, option_class, conflict_handler, description):
911 # Initialize the option list and related data structures.
912 # This method must be provided by subclasses, and it must
913 # initialize at least the following instance attributes:
914 # option_list, _short_opt, _long_opt, defaults.
915 self._create_option_list()
916
917 self.option_class = option_class
918 self.set_conflict_handler(conflict_handler)
919 self.set_description(description)
920
921 def _create_option_mappings(self):
922 # For use by OptionParser constructor -- create the main

Callers

nothing calls this directly

Calls 3

set_conflict_handlerMethod · 0.95
set_descriptionMethod · 0.95
_create_option_listMethod · 0.45

Tested by

no test coverage detected