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

Method __init__

Lib/code.py:344–349  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

342
343class Quitter:
344 def __init__(self, name):
345 self.name = name
346 if sys.platform == "win32":
347 self.eof = 'Ctrl-Z plus Return'
348 else:
349 self.eof = 'Ctrl-D (i.e. EOF)'
350
351 def __repr__(self):
352 return f'Use {self.name} or {self.eof} to exit'

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected