[Python-ideas] Yielding from the command line

Guido van Rossum guido at python.org
Fri Sep 12 18:20:43 CEST 2014


But that module and class work different in may ways from the built-in REPL.

Anyway, don't most people use IPython these days? It should be easier to
add there.

On Fri, Sep 12, 2014 at 8:10 AM, Paul Tagliamonte <paultag at gmail.com> wrote:

> On Fri, Sep 12, 2014 at 08:01:35AM -0700, Guido van Rossum wrote:
> >    While it may be possible to build "yield from" into a custom
> >    read-eval-print loop (REPL), that's tricky because the built-in REPL
> in
> >    written in C. the quickest way to success is definitely the helper
> >    function shown in the first response.
>
> While true, you can extend the REPL in Python by extending
> code.InteractiveConsole and using its `.interact` method.
>
> Sounds like a neat third party extension. I'd use it.
>
>
> Cheers,
>   Paul
>
> --
> :wq
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140912/e369ff6c/attachment.html>


More information about the Python-ideas mailing list