Fwd: python 3.8.3 fails
Terry Reedy
tjreedy at udel.edu
Sun Jun 14 09:05:06 EDT 2020
On 6/13/2020 2:38 PM, Dennis Lee Bieber wrote:
> On Sat, 13 Jun 2020 17:10:46 +0100, MRAB <python at mrabarnett.plus.com>
> declaimed the following:
>
>> I have Windows 10 Home and the stock Python from python.org. Typing just
>> "python" at the Powershell prompt starts Python without a problem.
>
> 99 44/100% sure what the OP called "PowerShell" is "PowerShell ISE",
> not a PowerShell console. In my testing ISE intercepts STDIN and STDERR --
> Interactive Python dumps its banner message on STDERR. ISE intercepts that
> banner and tries to interpret it as a PowerShell error object, which fails,
> causing a PowerShell error dump to be shown. The interception of STDIN
> prevents the Python >>> prompt from receiving any input. Buffering of
> STDOUT is also in play...
>
> -=-=-=- ISE (using <ctrl-c> to abort hanging commands)
> PS C:\Users\Wulfraed> python -c "print(input('type something'))"
>
> PS C:\Users\Wulfraed> python -c "x = input('Enter something '); print(x)"
>
> PS C:\Users\Wulfraed> python -c "x = input('Enter something\n '); print(x)"
> Enter something
>
> PS C:\Users\Wulfraed>
>
>
> -=-=-=- PS console window
> PS C:\Users\Wulfraed> python -c "print(input('type something'))"
> type somethingabc
> abc
> PS C:\Users\Wulfraed> python -c "x = input('Enter something '); print(x)"
> Enter something abcd
> abcd
> PS C:\Users\Wulfraed> python -c "x = input('Enter something\n '); print(x)"
> Enter something
> something
> something
> PS C:\Users\Wulfraed>
Could you open a tracker issue to put 'Do not use PowerShell IDE' is the
Windows chapter of 'Using Python'? This is obviously not common
knowledge? Or open as a possible bug issue. Maybe the install can be
done a big differently.
--
Terry Jan Reedy
More information about the Python-list
mailing list