def send_prompt(self, ps1, ps2, allow_multiple_statements):
"""sends the current prompt to the interactive window"""
with self.send_lock:
write_bytes(self.conn, ReplBackend._PRPC)
write_string(self.conn, ps1)
write_string(self.conn, ps2)
write_int(self.conn, 1 if allow_multiple_statements else 0)
评论列表
文章目录