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

Method current_line

bpython/curtsiesfrontend/interaction.py:135–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133
134 @property
135 def current_line(self):
136 self._check_for_expired_message()
137 if self.in_prompt:
138 return self.prompt + self._current_line
139 if self.in_confirm:
140 return self.prompt
141 if self._message:
142 return self._message
143 if self.permanent_stack:
144 return self.permanent_stack[-1]
145 return ""
146
147 @property
148 def should_show_message(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected