<p dir="ltr">On Apr 18, 2016 3:25 AM, "Nick Coghlan" <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
><br>
> On 18 April 2016 at 15:32, Franklin? Lee <<a href="mailto:leewangzhong%2Bpython@gmail.com">leewangzhong+python@gmail.com</a>> wrote:<br>
>><br>
>> On Apr 17, 2016 11:24 PM, "Ben Finney" <<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>> wrote:<br>
>> ><br>
>> > Surem, that would be a good place for it. I think that's much more<br>
>> > feasible than changing the behaviour of ‘repr’ for this purpose.<br>
>><br>
>> Huh? I never meant for any change to happen to `repr`. The desired behavior is, "Set default: Each command entered into the REPL should have limited output (without loss of capability for a newbie)." The proposal is to have the REPL determine when it's going to output too much.<br>
><br>
> A few tips for folks that want to play with this:<br>
><br>
> - setting sys.displayhook controls how evaluated objects are displayed in the default REPL<br>
> - setting sys.excepthook does the same for exceptions<br>
> - the PYTHONSTARTUP env var runs the given file when the default REPL starts<br>
><br>
> So folks are already free to change their REPL to work however they want it to: set sys.displayhook and sys.excepthook from a PYTHONSTARTUP file<br></p>
<p dir="ltr">I don't want arguments like, "This can already be done, for yourself, if you really need it." I use IPython's shell, with maximum output height, and it was years ago that I used a terminal which I couldn't scroll.</p>
<p dir="ltr">I want arguments like, "This will break my workflow."<br></p>
<p dir="ltr">> - improved defaults for teaching novices? Perhaps the default REPL isn't the best environment for that<br></p>
<p dir="ltr">Why not? I imagine that self-taught novices will use the default REPL more than the advanced users.</p>