Re: [Python-ideas] Suggestion: Clear screen command for the REPL

2016-09-18 Thread Stephen J. Turnbull
Chris Angelico writes: > On Mon, Sep 19, 2016 at 12:32 PM, Steven D'Aprano > wrote: > > (The fallback if all else fails is easy: get the height of the terminal, > > in lines, and print that many blank lines.) > > Assuming you can get the height in lines. Have you

Re: [Python-ideas] Suggestion: Clear screen command for the REPL

2016-09-18 Thread Chris Angelico
On Mon, Sep 19, 2016 at 12:32 PM, Steven D'Aprano wrote: > (The fallback if all else fails is easy: get the height of the terminal, > in lines, and print that many blank lines.) Assuming you can get the height in lines. Have you tried that in the default Windows shell? I

Re: [Python-ideas] Suggestion: Clear screen command for the REPL

2016-09-18 Thread Steven D'Aprano
On Sat, Sep 17, 2016 at 11:51:16AM +0100, João Matos wrote: > Hello, > > I would like to suggest adding a clear command (not function) to Python. While technically "clear" could be a command, I think it should not be. First off, making clear a reserved keyword, and a statement, like print in

Re: [Python-ideas] divmod(): fallback to __floordiv__ and __mod__?

2016-09-18 Thread Steven D'Aprano
On Sat, Sep 17, 2016 at 09:01:53AM +, Spencer Brown wrote: > Currently, calling divmod() on a class with __floordiv__ and __mod__ > defined, but not __divmod__ raises a TypeError. Is there any reason > why it doesn't fallback to (self // x, self % x)? Because things get really complex,

Re: [Python-ideas] (Windows-only - calling Steve Dower) Consider addinga symlink to pip in the same location as the py launcher

2016-09-18 Thread João Matos
Hello, Ok, thanks for the feedback. Best regards, JM domingo, 18 de Setembro de 2016 às 13:52:44 UTC+1, Steve Dower escreveu: > I'd like to add a launcher in the same style as py.exe, but that would > upset people who manually configure their PATH appropriately. > > Personally, I find

Re: [Python-ideas] (Windows-only - calling Steve Dower) Is Python forWindows using PGO? If not consider this a suggestion.

2016-09-18 Thread João Matos
Hello, Ok, thanks for the feedback. Best regards, JM domingo, 18 de Setembro de 2016 às 13:53:44 UTC+1, Steve Dower escreveu: > > It was disable previously because of compiler bugs. 3.6.0b1 64-bit has PGO > enabled, but we'll disable it again if there are any issues. > > Top-posted from my

Re: [Python-ideas] (Windows-only - calling Steve Dower) Is Python forWindows using PGO? If not consider this a suggestion.

2016-09-18 Thread Steve Dower
It was disable previously because of compiler bugs. 3.6.0b1 64-bit has PGO enabled, but we'll disable it again if there are any issues. Top-posted from my Windows Phone -Original Message- From: "João Matos" Sent: ‎9/‎17/‎2016 4:02 To: "python-ideas@python.org"

Re: [Python-ideas] (Windows-only - calling Steve Dower) Consider addinga symlink to pip in the same location as the py launcher

2016-09-18 Thread Steve Dower
I'd like to add a launcher in the same style as py.exe, but that would upset people who manually configure their PATH appropriately. Personally, I find "py.exe -m pip" quite okay, but appreciate the idea. I'm thinking about this issue (also for other scripts). Top-posted from my Windows Phone