On 05/02/2018 11:04, Paul Moore wrote: > On 5 February 2018 at 08:10, Steve Barnes <gadgetst...@live.co.uk> wrote: >> When a new version of python is in alpha/beta it is often desirable to >> have it installed for tests but remain on a previous version for day to >> day use. >> >> However, currently the Windows py launcher defaults to the highest >> version that it finds, which means that unless you are very careful you >> will end up having to explicitly specify your older version every time >> that you start python with it once you have installed the newer version. >> >> I an thinking that it would be relatively simple to expand the current >> launcher functionality to allow the user to set the default version to >> be used. >> >> One possible syntax, echoing the way that versions are displayed with >> the -0 option would be to allow py -n.m* to set and store, either in the >> registry, environment variable or a configuration file, the desired >> default to be invoked by py or pyw. >> >> Personally I thing that this would encourage more people to undertake >> testing of new candidate releases of python. >> >> I would be interested in any feedback on the value that this might add. > > There's a `py.ini` file that lets you set the default version. See > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.python.org%2F3.6%2Fusing%2Fwindows.html%23customization&data=02%7C01%7C%7C4fc688adc0944614494b08d56c882f23%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636534254511665686&sdata=PVQDHuO2NFpTAaLPEr0PruQ2IcP7X9zzASryITSTBNE%3D&reserved=0 > for > details. Is that just something you weren't aware of, or does it not > address the issue you're having? > > Paul >
Paul, That was something that I was not aware of & covers my use case nicely. Steve -- Steve (Gadget) Barnes Any opinions in this message are my personal opinions and do not reflect those of my employer. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/