Re: Request to advise error for python.

2021-10-23 Thread tommy yama
Thank you MRAB. As somebody mentioned before, the easiest solution is you can do pip install before typing python. That would work. On Sun, Oct 24, 2021 at 12:00 AM MRAB wrote: > On 2021-10-23 14:53, tommy yama wrote: > > It seems you use windows to install. > > > > > > Then, you need conda. Pi

Re: New assignmens ...

2021-10-23 Thread Chris Angelico
On Sun, Oct 24, 2021 at 7:48 AM Jon Ribbens via Python-list wrote: > > On 2021-10-23, Chris Angelico wrote: > > On Sun, Oct 24, 2021 at 4:39 AM Jon Ribbens via Python-list > > wrote: > >> On 2021-10-23, Chris Angelico wrote: > >> > In what situations do you need to mutate an attribute and also t

Re: New assignmens ...

2021-10-23 Thread Ethan Furman
On 10/23/21 6:42 AM, Jon Ribbens via Python-list wrote: > On 2021-10-23, Chris Angelico wrote: >> The onus is on you to show that it needs to be more flexible. > > Is it though? Yes. > It seems to me that the onus is on you to show that > this special case is special enough to be given its own

Re: New assignmens ...

2021-10-23 Thread Jon Ribbens via Python-list
On 2021-10-23, Chris Angelico wrote: > On Sun, Oct 24, 2021 at 4:39 AM Jon Ribbens via Python-list > wrote: >> On 2021-10-23, Chris Angelico wrote: >> > In what situations do you need to mutate an attribute and also test >> > it, and how much hassle is it to simply break it out into two lines? >>

Re: New assignmens ...

2021-10-23 Thread Chris Angelico
On Sun, Oct 24, 2021 at 4:39 AM Jon Ribbens via Python-list wrote: > > On 2021-10-23, Chris Angelico wrote: > > I've never used ctr:=ctr-1 either, though, so I don't know the actual > > use cases. Why is this being used in an assignment expression? Is it > > an ersatz loop? > > > > Common use-cas

Re: New assignmens ...

2021-10-23 Thread Jon Ribbens via Python-list
On 2021-10-23, Chris Angelico wrote: > I've never used ctr:=ctr-1 either, though, so I don't know the actual > use cases. Why is this being used in an assignment expression? Is it > an ersatz loop? > > Common use-cases include: > > if m := re.match(...): > > while data := thing.read(): > > etc. Al

front end gfx for a redpitaya VNA

2021-10-23 Thread Gene Heskett
Greetings all; I have acquired the linux version of the front end for a redpitaya Vector Network Analyzer. Putting it on an rpi4b running raspbian buster, it gets to line 32 and bails out with this error: pi@rpi4:/media/pi/workspace/vna-linux-tool $ python3 ./vna.py Traceback (most recent call

front end gfx for a redpitaya VNA

2021-10-23 Thread Gene Heskett
Greetings all; I have acquired the linux version of the front end for a redpitaya Vector Network Analyzer. Putting it on an rpi4b running raspbian buster, it gets to line 32 and bails out with this error: pi@rpi4:/media/pi/workspace/vna-linux-tool $ python3 ./vna.py Traceback (most recent call

Re: Request to advise error for python.

2021-10-23 Thread MRAB
On 2021-10-23 14:53, tommy yama wrote: It seems you use windows to install. Then, you need conda. Pip works for Linux. On Windows, 'conda' is for the Anaconda version of Python. If you're using the standard version of Python from python.org you use pip or, preferably, py -m pip. Check thi

Re: Request to advise error for python.

2021-10-23 Thread tommy yama
It seems you use windows to install. Then, you need conda. Pip works for Linux. Check this out. https://numpy.org/install/ On Thu, Oct 21, 2021, 11:35 PM Grant Edwards wrote: > On 2021-10-21, Mats Wichmann wrote: > > > There are some nuances. If you are on a Linux system, Python is a > > s