Re: installation issues

2021-02-09 Thread dn via Python-list
On 10/02/2021 12.23, Martin Lopez wrote: > Hello, > > My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. > > After I install the program then try to run it, with no success. > > I've uninstalled all previous versions and reinstalled them, but it does > not seem to help. > >

Python 3.9. 1 not working

2021-02-09 Thread Martin Lopez
Where do I inquire about installation support? -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Inconveniente

2021-02-09 Thread Terry Reedy
On 2/9/2021 3:39 PM, dn via Python-list wrote: On 09/02/2021 15.13, Juan Jose Reyna Figuera wrote: [ Translation: matplotlib (and seaborn) not playing-nicely with Python 3.9 64-bit edition on MS-Win 10. Solved by down-grading to Python 3.8 32-bit. ] Yes, there have been problems with certain

Re: Troubles with Python imports

2021-02-09 Thread Terry Reedy
On 2/9/2021 9:55 AM, Philipp Daher via Python-list wrote: Hello, I’ve just typed „pip install selenium“ into my command prompt on windows 10. Although my computer told me that the requirement was already satisfied, import selenium did not work. So I tried different methods to install it and ty

installation issues

2021-02-09 Thread Martin Lopez
Hello, My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. After I install the program then try to run it, with no success. I've uninstalled all previous versions and reinstalled them, but it does not seem to help. Can you please assist? Thank you, -- https://mail.python.o

Re: Fwd: Inconveniente

2021-02-09 Thread Terry Reedy
This is an English list. There are Spanish lists, such as Esto es lista engleis. Hai listas espanolas. https://mail.python.org/mailman/listinfo/python-es On 2/8/2021 9:13 PM, Juan Jose Reyna Figuera wrote: *Buenas tardes, le escribo breve y puntualmente para reportar este el siguiente error al c

Re: Mutable defaults

2021-02-09 Thread Terry Reedy
On 2/9/2021 10:17 AM, Antoon Pardon wrote: Most of us know of the perils of mutable default values. So I came up with the following proof of concept: Which is intended to do what? from inspect import signature as signature_of, Parameter from itertools import zip_longest from copy import copy

Re: Response for PING in ircbot.

2021-02-09 Thread flaskee via Python-list
‐‐‐ Original Message ‐‐‐ On Saturday, January 30, 2021 11:50 AM, Bischoop wrote: > Got problem with responding for Ping, > tried so many ways to response > and always end up with time out or other error. > This time: > Is it possible to share your final Ping answer with the list? I've

Re: Files can only be modified in IDLE, but not via Powershell

2021-02-09 Thread Stefan Ritter
Thanks for your advice! To be honest i'm not quite sure what did the trick, I just played a little bit around with the paths. Anyway, now its working as expected. Bless your crystal ball! Needless to say: Many thanks for all the other responses i did receive! Am 09.02.2021 um 10:50 schrieb Peter

Re: Fwd: Inconveniente

2021-02-09 Thread dn via Python-list
On 09/02/2021 15.13, Juan Jose Reyna Figuera wrote: > *Buenas tardes, le escribo breve y puntualmente para reportar este el > siguiente error al cual no le pude dar solución.* > > *Instalé Python 3.9.1 (64 bits), todo había funcionado bien hasta que > necesité usar la librería seaborn. Al ejecutar

Re: Files can only be modified in IDLE, but not via Powershell

2021-02-09 Thread Dan Stromberg
On Mon, Feb 8, 2021 at 4:22 PM Stefan Ritter wrote: > > Hi, > > It would be highly appreciated if you could offer me some advice to > solve a problem I'm currently facing: > > afterwards in the file . However it does not work if run it in > Powershell (or anything else), there are no changes ma

Re: UTF-16 or something else?

2021-02-09 Thread Skip Montanaro
> > It's UTF-8 with a UTF-16 BOM prepended, which is not uncommon when you > have a file that's been converted to UTF-8 from UTF-16 or has been > produced by shitty Microsoft software. You can tell instantly at a > glance that it's not UTF-16 because the ascii dump would l.o.o.k. > .l.i.k.e. .t.h.i

Re: UTF-16 or something else?

2021-02-09 Thread Skip Montanaro
> > Try setting encoding to: "utf-8-sig". > > 'eb bb bf' is the byte order mark for UTF8 (most systems do not include > this in UTF-8 encoded files) > > Python will correctly read UTF8 BOMs if you use the 'utf-8-sig' encoding > when reading files > Excellent, thanks. That worked like a charm. Know

Re: Troubles with Python imports

2021-02-09 Thread Mats Wichmann
On 2/9/21 7:55 AM, Philipp Daher via Python-list wrote: Hello, I’ve just typed „pip install selenium“ into my command prompt on windows 10. Although my computer told me that the requirement was already satisfied, import selenium did not work. So I tried different methods to install it and type

Re: Mutable defaults

2021-02-09 Thread Peter Otten
On 09/02/2021 16:17, Antoon Pardon wrote: Most of us know of the perils of mutable default values. So I came up with the following proof of concept: [...] def copy_defaults(f): Once you know you need that decorator you won't need it anymore ;) @copy_defaults def prepare(value, lst = []):

Re: Mutable defaults

2021-02-09 Thread Chris Angelico
On Wed, Feb 10, 2021 at 2:19 AM Antoon Pardon wrote: > > Most of us know of the perils of mutable default values. So I came up with > the following proof of concept: > > def copy_defaults(f): > > def wrapper(*args): > return f(*newargs) > return wrapper > > @copy_defaults > def

Re: UTF-16 or something else?

2021-02-09 Thread Jon Ribbens via Python-list
On 2021-02-09, Skip Montanaro wrote: > I downloaded US hospital ICU capacity data this morning from this page: > > https://healthdata.gov/dataset/covid-19-reported-patient-impact-and-hospital-capacity-facility > > (The download link is about halfway down the page.) > > Trying to read it using my p

Mutable defaults

2021-02-09 Thread Antoon Pardon
Most of us know of the perils of mutable default values. So I came up with the following proof of concept: from inspect import signature as signature_of, Parameter from itertools import zip_longest from copy import copy def copy_defaults(f): signature = signature_of(f) def wrapper(*ar

Re: UTF-16 or something else?

2021-02-09 Thread Stestagg
Try setting encoding to: "utf-8-sig". 'eb bb bf' is the byte order mark for UTF8 (most systems do not include this in UTF-8 encoded files) Python will correctly read UTF8 BOMs if you use the 'utf-8-sig' encoding when reading files Steve On Tue, Feb 9, 2021 at 2:56 PM Skip Montanaro wrote: >

Troubles with Python imports

2021-02-09 Thread Philipp Daher via Python-list
Hello, I’ve just typed „pip install selenium“ into my command prompt on windows 10. Although my computer told me that the requirement was already satisfied, import selenium did not work. So I tried different methods to install it and typed „Python“ in my command prompt and imported selenium. It

UTF-16 or something else?

2021-02-09 Thread Skip Montanaro
I downloaded US hospital ICU capacity data this morning from this page: https://healthdata.gov/dataset/covid-19-reported-patient-impact-and-hospital-capacity-facility (The download link is about halfway down the page.) Trying to read it using my personal CSV tools without specifying an encoding,

Re: Files can only be modified in IDLE, but not via Powershell

2021-02-09 Thread Alan Gauld via Python-list
On 08/02/2021 21:33, Stefan Ritter wrote: > I have a Windows 10 ADM64 desktop and a Windows 10 AMD64 Laptop. So notionally identical. > I wrote some code to insert text in a .txt-file. It works perfectly on > my laptop. > > On my desktop it works only if i run it in IDLE, the text appears > aft

Fwd: Inconveniente

2021-02-09 Thread Juan Jose Reyna Figuera
*Buenas tardes, le escribo breve y puntualmente para reportar este el siguiente error al cual no le pude dar solución.* *Instalé Python 3.9.1 (64 bits), todo había funcionado bien hasta que necesité usar la librería seaborn. Al ejecutar mi algoritmo obtenía el siguiente error: * (...\Python\Pytho

Re: Files can only be modified in IDLE, but not via Powershell

2021-02-09 Thread Terry Reedy
On 2/8/2021 4:33 PM, Stefan Ritter wrote: Hi, It would be highly appreciated if you could offer me some advice to solve a problem I'm currently facing: I have a Windows 10 ADM64 desktop and a Windows 10 AMD64 Laptop. I wrote some code to insert text in a .txt-file. It works perfectly on my la

Re: Files can only be modified in IDLE, but not via Powershell

2021-02-09 Thread Peter Otten
On 08/02/2021 22:33, Stefan Ritter wrote: Hi, It would be highly appreciated if you could offer me some advice to solve a problem I'm currently facing: I have a Windows 10 ADM64 desktop and a Windows 10 AMD64 Laptop. I wrote some code to insert text in a .txt-file. It works perfectly on my la