Re: Property type hints?

2020-12-09 Thread dn via Python-list
On 10/12/2020 13:06, Paul Bryan wrote: Thanks for the comprehensive response, dn! I guess I'm influenced by data classes here, where the object's attribute type hints are represented by class variable annotations. I'm a great fan of them too - the saving of 'boilerplate code' does it for me

Re: Python idle did not open even after trying many times

2020-12-09 Thread Terry Reedy
On 12/9/2020 11:08 AM, avinash gaur wrote: Dear Sir/Mam, I am facing a problem with Python Idle. I am unable to open python idle even after clicking on it so many times. I am using Python 3.7 on Windows. What are you clicking on? Did IDLE work before? (If you just installed 3.7, why?) Can you

Re: Unable to download

2020-12-09 Thread Siddarth Adiga
Thank you for your concern. I use windows 10. But I was able to download it. The fifth time I tried, it worked. But then I had a prolem opening Jupyter Notebook, it said "Fatal error in launcher: unable to create process using. The system cannot find the file specified." So I had to download Anacon

Re: Property type hints?

2020-12-09 Thread Paul Bryan
Thanks for the comprehensive response, dn! I guess I'm influenced by data classes here, where the object's attribute type hints are represented by class variable annotations. On Thu, 2020-12-10 at 07:49 +1300, dn via Python-list wrote: > On 09/12/2020 13:17, Paul Bryan wrote: > > Would this be a

Re: Property type hints?

2020-12-09 Thread dn via Python-list
On 09/12/2020 13:17, Paul Bryan wrote: Would this be a reasonably correct way to annotate a property with a type hint? class Foo: ... bar: int If we build a class with (only) the above two lines, Python's help lookup offers the following documentation: <<< Help on Foo in module __mai

Re: Unable to download

2020-12-09 Thread Bob Gailer
On Wed, Dec 9, 2020, 11:46 AM Siddarth Adiga wrote: > Hello. I wanted to download the Python Version 3.9.1 but it said there was > already another version of Python already installed. But I have deleted the > program from the ADD OR REMOVE PROGRAMS option. But still I am unable to > download it.

Re: numpy/python (image) problem

2020-12-09 Thread Paulo da Silva
Às 05:55 de 09/12/20, Paulo da Silva escreveu: > Hi! > > I am looking at some code, that I found somewhere in the internet, to > compute DCT for each 8x8 block in an gray (2D) image (512x512). > > This is the code: > > def dct2(a): > return > scipy.fft.dct(scipy.fft.dct(a,axis=0,norm='ortho'

Unable to download

2020-12-09 Thread Siddarth Adiga
Hello. I wanted to download the Python Version 3.9.1 but it said there was already another version of Python already installed. But I have deleted the program from the ADD OR REMOVE PROGRAMS option. But still I am unable to download it. Please help... -- https://mail.python.org/mailman/listinfo/py

Python idle did not open even after trying many times

2020-12-09 Thread avinash gaur
Dear Sir/Mam, I am facing a problem with Python Idle. I am unable to open python idle even after clicking on it so many times. I am using Python 3.7 on Windows. I have already installed and uninstalled python 3.7 so many times. But it is not working Any help will be appreciated Thanking you -- htt