On Sat, Feb 02, 2019 at 07:45:43AM +1100, Chris Angelico <ros...@gmail.com> wrote: > On Sat, Feb 2, 2019 at 7:32 AM Oleg Broytman <p...@phdru.name> wrote: > > > > On Fri, Feb 01, 2019 at 03:12:42PM -0500, Terry Reedy <tjre...@udel.edu> > > wrote: > > > On 2/1/2019 1:50 PM, James Lu wrote: > > > > It???s difficult to learn anything with a body (such as a loop or a > > > > class or a function) with the built in REPL because you can???t edit > > > > lines you???ve already written. > > > > > > However, I don't see what this has to do with running system console > > > commands in a Python shell. > > > > Python REPL is missing the following batteries: > > > > * Persistent history; > > Dunno about that - it persists just fine on my system. Maybe it's a > Windows problem? On all my Windows systems, I just use IDLE instead of > the default REPL and have done with it. > > > * Syntax highlighting; > > Not usually something I need from a REPL. That's a feature for an editor. > > > * Clear separation (using, for example, different colors) > > between input, output and errors; > > Input is marked with a prompt (">>>" or "..."). Errors are just > another form of output.
Yes, that the thing - it's *another* form of output. > > * Paging of very long output/errors. > > This could definitely be improved on. I don't know that this counts as > "missing batteries" though, as the standard library DOES include a > hook that you could use for the purpose (sys.displayhook); it's just a > matter of figuring out a suitable renderer. I use it, of course: https://phdru.name/Software/dotfiles/python/init.py.html The question is - does builtin REPL need more batteries? > ChrisA Oleg. -- Oleg Broytman https://phdru.name/ p...@phdru.name Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/