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

Method __init__

Lib/test/test_argparse.py:44–47  ·  view source on GitHub ↗
(self, initial_value='', newline='\n')

Source from the content-addressed store, hash-verified

42 '''
43
44 def __init__(self, initial_value='', newline='\n'):
45 initial_value = initial_value.encode('utf-8')
46 super().__init__(io.BufferedWriter(io.BytesIO(initial_value)),
47 'utf-8', newline=newline)
48
49 def getvalue(self):
50 self.flush()

Callers

nothing calls this directly

Calls 3

superClass · 0.85
encodeMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected