Re[2]: Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
Thanks for the two further clarifications, which I've just read. Eryk's advice for uninstalling the app distribution got rid of those unwanted WindowsApps subdirectories painlessly. -- https://mail.python.org/mailman/listinfo/python-list

Empty list as a default param - the problem, and my suggested solution

2021-08-13 Thread guruyaya
I am fairly sure all of us know about this python quirk: >>> def no_new_func(a=[]): ...a.append('new') ...return a >>> no_new_func() ['new'] >>> no_new_func() ['new', 'new'] >>> For some time I was bothered about that there's no elegant way to use empty list or dict as a default

Recoding Categorical to Numerical

2021-08-13 Thread John Griner
Hello, and thanks in advance, I am trying to recode categorical variable to numeric. Despite using lambda, If else, dummy-recoding, and so forth, what I get is from ONE column that has 4 variables (City, Town, Suburb, Rural), I get FOUR columns: localeDummy_City localeDummy_Town

Re[2]: Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
Many thanks for both replies. Everything seems fine now. Reinstalling the packages using "py" made them available in v3.9.6. So I could delete them from C:\Users\...\AppData\Local\Packages\PythonSoftwareFoundationPython.3.8.qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages In fac

Re: Can't get rid of old version of python

2021-08-13 Thread Eryk Sun
On 8/13/21, Ciarán Ó Duibhín via Python-list wrote: > > But when I type "python" at the DOS prompt, I get "Python 3.8.10". I > don't understand this, as I uninstalled old versions, and I do not see a > DOS environment variable called "python" anywhere. The app distribution is probably installed.

Re: Can't get rid of old version of python

2021-08-13 Thread Terry Reedy
On 8/13/2021 2:32 PM, Ciarán Ó Duibhín via Python-list wrote: Hi, On Windows 10, I uninstalled all previous versions of Python and installed v3.9.6. When I use the start menu option Python 3.9 (64-bit), I get the prompt "Python 3.9.6" as expected.  The same happens when I type "py" at the D

Re: Can't get rid of old version of python

2021-08-13 Thread Dennis Lee Bieber
On Fri, 13 Aug 2021 18:32:51 +, Ciarán Ó Duibhín via Python-list declaimed the following: > >Also there is a load of python 3.8 stuff at C:\Program >Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0 > >which directory is virtually inaccessible from Windows

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-13 Thread Michael F. Stemper
On 11/08/2021 20.17, dn wrote: I've been trying to remember if we had negative-steps in FORTRAN do-loops My text for Fortran 77 (the last version that I ever used) says that negative increments are supported. Ref: _FORTRAN 77: Language and Style_; Michael J. Merchant; Wadsworth Publishing Co

Re: pip doesn't work

2021-08-13 Thread Dennis Lee Bieber
On Fri, 13 Aug 2021 10:19:36 +0530, Ridit declaimed the following: > So, whoever gets this, when I try to download packages using pip, it shows > errors saying "'pip' is not recognized as an internal or external command, > operable program or batch file." Is there a way to solve this? I tri

Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
Hi, On Windows 10, I uninstalled all previous versions of Python and installed v3.9.6. When I use the start menu option Python 3.9 (64-bit), I get the prompt "Python 3.9.6" as expected. The same happens when I type "py" at the DOS prompt. But when I type "python" at the DOS prompt, I get

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-13 Thread MRAB
On 2021-08-13 17:17, Chris Angelico wrote: On Sat, Aug 14, 2021 at 2:11 AM Terry Reedy wrote: On 8/13/2021 6:53 AM, Umang Goswami wrote: > Hi There, Hope you find this mail in good health. > > I am Umang Goswami, a Python developer and student working on a huge > project for automation of musi

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-13 Thread Chris Angelico
On Sat, Aug 14, 2021 at 2:11 AM Terry Reedy wrote: > > On 8/13/2021 6:53 AM, Umang Goswami wrote: > > Hi There, Hope you find this mail in good health. > > > > I am Umang Goswami, a Python developer and student working on a huge > > project for automation of music instruments. I am producing the m

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-13 Thread Terry Reedy
On 8/13/2021 6:53 AM, Umang Goswami wrote: Hi There, Hope you find this mail in good health. I am Umang Goswami, a Python developer and student working on a huge project for automation of music instruments. I am producing the musical notes using the Beep function of Winsound Module( https://docs