MCPcopy Create free account
hub / github.com/bpython/bpython / confirm

Method confirm

bpython/curtsiesfrontend/interaction.py:162–167  ·  view source on GitHub ↗

Expected to return True or False, given question prompt q

(self, q)

Source from the content-addressed store, hash-verified

160 # below really ought to be called from greenlets other than main because
161 # they block
162 def confirm(self, q):
163 """Expected to return True or False, given question prompt q"""
164 self.request_context = greenlet.getcurrent()
165 self.prompt = q
166 self.in_confirm = True
167 return self.main_context.switch(q)
168
169 def file_prompt(self, s):
170 """Expected to return a file name, given"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected