From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: How do I get a Python REPL in Eshell on M$ Windows? Date: Sun, 05 Jun 2022 18:59:50 +0200 Message-ID: <629ce0cf.1c69fb81.8059a.cd39@mx.google.com> References: <831qw3bsj8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34784"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 05 18:59:41 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxtbJ-0008so-Lw for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 18:59:41 +0200 Original-Received: from localhost ([::1]:33712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxtbI-0002Xv-6z for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 12:59:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxtae-0002Xh-Vn for help-gnu-emacs@gnu.org; Sun, 05 Jun 2022 12:59:01 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:56069) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxtad-0006kB-DC; Sun, 05 Jun 2022 12:59:00 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id a10so3982222wmj.5; Sun, 05 Jun 2022 09:58:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:from:to:subject:in-reply-to:references:date:mime-version; bh=kbBzi12LeDZ1L131Ng1avfOg09Qb1J39SZelUJvZd58=; b=VDeMCVfaiWqK1HNTcWLyUetr5u/qf18r2SkSSRPpAlkMKshvUD5eDlY4NsSiihi+d9 Xw/jfBJaan/ym958AC7D5PppheeF4Xu01SZhLhyAviaQnF5aEr0arnrq0Gew/d8VQh+m C1uAidGz0b6rzookcblpi4Ru3jwJAXEuLjFjbT90WATApiLVX7J8JFyuyfsdaBxAAx/j /XZb9nEWwdI+/pQJw5f243OM0ZX/mMcjKM/ZxNBrGDmlEDQcYqjvESJcyX90z7MwrFLB v04nxd4cvE6j2CLebvFo8oLyzSK02+3+b4vG/fXjCVXVW8zIxOyId/n31nMdR83FVave u3sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:from:to:subject:in-reply-to :references:date:mime-version; bh=kbBzi12LeDZ1L131Ng1avfOg09Qb1J39SZelUJvZd58=; b=PVS70oEyqY8xG4HLywijZgzsBgJEeKSc5b6s0px42TUWdz+4YHKjIwSxdw3zpyOx4K Z3dVw5RjtVp2jfTL/ZyxNCi7eIbSn7pZDA7xZLsGBhxg0rb7wfi8oZs6FBnyS0pNYqUG zs3Z/S9c5G9K8jKE1q+TAPJO638ID9OeEjnwSoNzk/3Mg7kdddpiRsrZ/7ezTwRlY3Md 4Ql6aWEOV7iwDbMoLD/b+KjdsU+ljqVX/n25s3AHF22QdVLm2oZGRoc23/dhE/qgJA2F 2/exHhlp0PVIDKpRKA5w8qGGVFgMEZjilu4fOhzrq3iwHgslHZGKCwmseFs86RlHICe4 WYcA== X-Gm-Message-State: AOAM532NsaC50sb8vQi6miHgRRrnLIDIi6rIaLh92IKAs/P25pri1r8E joLd82lwF4TaoDLAF+3BbReNFqXMfAA= X-Google-Smtp-Source: ABdhPJxuUQtH98kdUl12i09K+75vpOAmAjSxa1NlmSFUI7acIExnqjKGzLtf03oSAJYn7TyCsoK3kA== X-Received: by 2002:a1c:3b56:0:b0:39c:472a:4aff with SMTP id i83-20020a1c3b56000000b0039c472a4affmr7862020wma.23.1654448336586; Sun, 05 Jun 2022 09:58:56 -0700 (PDT) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id h12-20020a05600c2cac00b0039749256d74sm19576013wmc.2.2022.06.05.09.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 09:58:55 -0700 (PDT) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Sun, 05 Jun 2022 18:59:51 +0200 In-Reply-To: <831qw3bsj8.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137499 Archived-At: Hi Eduardo, Eli Zaretskii writes: > > I believe the buffering of Python interpreter's stdout can also be > controlled. Search the Internet for "how to make python standard > output unbuffered", and you will find the answers. Yes, outputs are buffered by default, plus, python tries to detect if it's an interactive shell. So, with Emacs 'shell', I'm using: python -i -u '-i' to force an interactive python '-u' to force unbuffered outputs Bruno