Re: [tkinter][Windows]Unexpected state report for the tab key

2021-10-24 Thread Eryk Sun
On 10/24/21, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: >>tab_down_hllDll.GetKeyState(tab_down_VK_TAB) & 0b1000 > > In the meantime, I read about "GetAsyncKeyState". I thought that > this would solve my problem, but no. Odd. It works for me in the classic con

what's unsafe to do in a __getattr__?

2021-10-24 Thread Mats Wichmann
Have run into a problem on a "mature" project I work on (there are many years of history before I joined), there are a combination of factors that combine to trigger a KeyError when using copy.copy(). I don't want to write a massive essay here but hoping to give enough to set the context.

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread MRAB
On 2021-10-24 23:59, Mats Wichmann wrote: On 10/24/21 09:46, MRAB wrote: > On 2021-10-24 12:41, Anik Dey wrote: >> Hello, I downloaded & installed Python 3.10 but it didn't replace Python >> 3.9. And now I can't install Matplotlib & Pandas. What should I do? >> > Multiple versions of Python can e

RE: New assignmens ...

2021-10-24 Thread Avi Gross via Python-list
No, many things need not be as general as possible once you consider how much work it may take to develop code and how many bugs and oddities might be introduced and even how much it may slow the interpreter. I could make an argument that everywhere you can put in a character string should also al

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread Mats Wichmann
On 10/24/21 09:46, MRAB wrote: On 2021-10-24 12:41, Anik Dey wrote: Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? Multiple versions of Python can exist alongside each other. You haven't said what yo

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread MRAB
On 2021-10-24 12:41, Anik Dey wrote: Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? Multiple versions of Python can exist alongside each other. You haven't said what you mean by "can't install". If y

Re: New assignmens ...

2021-10-24 Thread Chris Angelico
On Mon, Oct 25, 2021 at 2:13 AM Alan Bawden wrote: > > It seemed weird to me that only an identifier was allowed to be the > target of an assignment expression. Then it occurred to me that > function definitions are another place where only identifiers are > allowed, but where I could imagine an

Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread Anik Dey
Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? -- https://mail.python.org/mailman/listinfo/python-list

Re: New assignmens ...

2021-10-24 Thread O365 Dict
Op 23/10/2021 om 03:22 schreef Stefan Ram: > Paulo da Silva writes: >> Well, I didn't follow the discussion of this new feature, but the reason >> I can see behind allowing it seems so valid for for ctr:=ctr-1 as for >> self.ctr:=self.ctr-1. The kind of use is exactly the same. One is for a >> nor

Re: New assignmens ...

2021-10-24 Thread Alan Bawden
It seemed weird to me that only an identifier was allowed to be the target of an assignment expression. Then it occurred to me that function definitions are another place where only identifiers are allowed, but where I could imagine an attributeref or a subscription being used. E.g. def table[