🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.python
Article #1

Re: „Diesen Block jetzt ausführen“ in der REPL?

#1
From: Tim Landscheidt
Date: Wed, 16 Sep 2026 09:56
30 lines
2036 bytes
Marcel Logen <333200007110-0201@ybtra.de> wrote:

>>Gibt es eine vordefinierte Taste oder einen readline (?)-Be-
>>fehl, den man an eine Taste binden kann, die erlauben, mit-
>>ten in einem Block diesen sofort ausführen zu lassen?

> Seit Python/3.13 gibt es ein "new REPL" mit "multi-line
> editing":

> <https://peps.python.org/pep-0762/>

> Einen Befehl zur Ausführung eines Multi-line-Blocks ist
> da aber leider nicht erwähnt, auch nicht in

> <https://docs.python.org/3/whatsnew/3.13.html#whatsnew313-better-interactive-interpreter>,

> aber Google sprach von "Alt-Enter" oder "ESC, dann Enter"
> IIRC. Ausprobieren kann ich es nicht, da ich hier die Ver-
> sion 3.11 habe.

> Vielleicht gibt ja "F1" (help) etwas dazu her.

Da war Dein Google-Karma besser als meins; ich hatte nur das
in anderen Programmen funktionierende Ctrl-Enter und Shift-
Enter (ohne Erfolg) probiert.

Anyhow: Alt-Enter bzw. ESC Enter funktioniert bei Py-
thon 3.14.7 (Fedora 43) einwandfrei, danke!

Tim
Technical Details
Message-ID: <87h5jpmsdz.fsf@vagabond.tim-landscheidt.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <87fqzbreav.fsf@vagabond.tim-landscheidt.de> <20260915tu204154@o15.ybtra.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Tim Landscheidt <tim@tim-landscheidt.de>
Newsgroups: de.comp.lang.python
Subject: Re: „Diesen Block jetzt ausführen“ in der REPL?
Date: Wed, 16 Sep 2026 09:56:24 +0000
Organization: https://www.tim-landscheidt.de/
Lines: 30
Message-ID: <87h5jpmsdz.fsf@vagabond.tim-landscheidt.de>
References: <87fqzbreav.fsf@vagabond.tim-landscheidt.de>
	<20260915tu204154@o15.ybtra.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net rki68lts8Bu6mVmhc3toLQNBQ1bN9Aa8inaPtIMxY7/sV0JiDN
Cancel-Lock: sha1:tnyqVCKy1CS+lWuboCMu5sZQK5k= sha1:RCeHn0NjvGGqHx6IiWUH/6cQe7I= sha256:vs1sb07Lj/dPQB7C2FVxCcbaNQJJGwQtrJg8GWfPRfs=
User-Agent: Gnus/5.13 (Gnus v5.13)