Re: "py.ini" question

2021-04-26 Thread Barry Scott
> On 26 Apr 2021, at 09:13, Gisle Vanem wrote: > > Thank for confirming what I suspected. And as I wrote earlier: > Since I'm on a 64-bit Python, a 'py -3' totally seems to ignore > 'py.ini', unless it says: >[defaults] >python3=3.6 >python3=3.6-32 You can prove that py.ini is

Re: "py.ini" question

2021-04-26 Thread Barry Scott
> On 24 Apr 2021, at 20:56, Gisle Vanem wrote: > > On that, I'm getting: > Requested Python version (0) not installed > > Is that '-0' some 3.9+ feature? No its a lot older then 3.9 I cannot remember when -0 was first supported but I've been using -0 for a long long time. I using the

Re: "py.ini" question

2021-04-26 Thread Gisle Vanem
Ralf M. wrote: I think the problem / misunderstanding is that Gisle put in py.ini only  [defaults]  python=3.6 and expected this to make py -3 start 3.6. However py -3 looks for a key named 'python3' and, not finding it, uses default behaviour (ignoring the 'python' key), i.e. starts the

Re: "py.ini" question

2021-04-25 Thread Alan Gauld via Python-list
On 24/04/2021 15:23, Gisle Vanem wrote: > I have a question about the Python launcher; >c:\Windows\py.exe and the py.ini file. > > I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) > installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' > with this only: >[defaults] >

Re: "py.ini" question

2021-04-25 Thread Ralf M.
Am 25.04.2021 um 16:30 schrieb Mats Wichmann: On 4/24/21 2:57 PM, Chris Angelico wrote: On Sun, Apr 25, 2021 at 5:57 AM Gisle Vanem wrote: With 'py -3.6' or 'py 3.8' I get the expected. But with 'py -3':     Python 3.8.9 (default, Apr 13 2021, 15:54:59)  [GCC 10.2.0 64 bit (AMD64)] on

Re: "py.ini" question

2021-04-25 Thread Mats Wichmann
On 4/24/21 2:57 PM, Chris Angelico wrote: On Sun, Apr 25, 2021 at 5:57 AM Gisle Vanem wrote: With 'py -3.6' or 'py 3.8' I get the expected. But with 'py -3': Python 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)] on win32 I believe that's because you're asking for

Re: "py.ini" question

2021-04-24 Thread Chris Angelico
On Sun, Apr 25, 2021 at 5:57 AM Gisle Vanem wrote: > > With 'py -3.6' or 'py 3.8' I get the expected. > But with 'py -3': >Python 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)] > on win32 > I believe that's because you're asking for "the latest in the 3.x series".

Re: "py.ini" question

2021-04-24 Thread Gisle Vanem
Barry Scott wrote: A copy of this is also in 'c:\Windows\py.ini'. So when I do a: py -3 -c "import sys; print(sys.version)" I would assume a "3.6..." would be printed. But no, py.exe chooses to run my newest Python 3.8: 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)]

Re: "py.ini" question

2021-04-24 Thread Barry Scott
> On 24 Apr 2021, at 15:23, Gisle Vanem wrote: > > I have a question about the Python launcher; > c:\Windows\py.exe and the py.ini file. > > I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) > installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' > with this only: >

Re: "py.ini" question

2021-04-24 Thread Mats Wichmann
On 4/24/21 8:23 AM, Gisle Vanem wrote: I have a question about the Python launcher;   c:\Windows\py.exe and the py.ini file. I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' with this only:   [defaults]   python=3.6 A copy

"py.ini" question

2021-04-24 Thread Gisle Vanem
I have a question about the Python launcher; c:\Windows\py.exe and the py.ini file. I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' with this only: [defaults] python=3.6 A copy of this is also in 'c:\Windows\py.ini'. So