Re: Pycharm Won't Do Long Underscore

2020-06-23 Thread Christian Gollwitzer
Am 23.06.20 um 22:49 schrieb Tony Kaloki: Alexander, Thank you so much! It worked! Thank you. One question: in your reply, are you saying that Python would have treated the two separate underscores the same way as a long underscore i.e. it's a stylistic choice rather than

Re: FW: Pycharm Won't Do Long Underscore

2020-06-23 Thread Terry Reedy
On 6/23/2020 4:44 PM, MRAB wrote: On 2020-06-23 20:18, Tony Kaloki wrote:   When I try to do a long underscore __  for classes in Pycharm, it only gives me two separate single underscores _ _. The "__" is 2 underscores; it's just that they usually appear joined together in many fonts.

Re: Pycharm Won't Do Long Underscore

2020-06-23 Thread Alexander Neilson
Hi Tony Absolutely. The “long underscore” is just a display thing. Underneath it is always two underscores. The only difference is what your editor is showing (or how the underscore is drawn in the display font - as some fonts make the underscore the full width or slightly over the edge of wher

Re: Pycharm Won't Do Long Underscore

2020-06-23 Thread Alexander Neilson
Hi Tony The “long underscore” (often called Dunder as “double underscore”) is actually two underscores as you are seeing shown in PyCharm. However the display of it as one long underscore is a ligature (special font display to communicate clearer) and to enable these in PyCharm go to the sett

Re: Pycharm Won't Do Long Underscore

2020-06-23 Thread Grant Edwards
On 2020-06-23, Tony Kaloki wrote: >in your reply, are you saying that Python would have treated the >two separate underscores the same way as a long underscore No. There is no long underscore in Python. In Python, it's always two underscores. In some fonts, two underscores just _looks

Re: Asynchronous generators

2020-06-23 Thread inhahe
I know of a URL that explains asyncio: https://hackernoon.com/a-simple-introduction-to-pythons-asyncio-595d9c9ecf8c. As to your specific problem, I can't help and don't know if the URL helps. I haven't studied asyncio much. On Tue, Jun 23, 2020 at 3:53 PM Jonathan Gossage wrote: > -- > I am atte

Re: Pycharm Won't Do Long Underscore

2020-06-23 Thread Tony Kaloki
Alexander, Thank you so much! It worked! Thank you. One question: in your reply, are you saying that Python would have treated the two separate underscores the same way as a long underscore i.e. it's a stylistic choice rather than a functional necessity? In any case, thank

Re: FW: Pycharm Won't Do Long Underscore

2020-06-23 Thread MRAB
On 2020-06-23 20:18, Tony Kaloki wrote: Sent from Mail for Windows 10 From: Tony Kaloki Sent: 23 June 2020 19:45 To: python-list@python.org Subject: Pycharm Won't Do Long Underscore Hi G

FW: Pycharm Won't Do Long Underscore

2020-06-23 Thread Tony Kaloki
Sent from Mail for Windows 10 From: Tony Kaloki Sent: 23 June 2020 19:45 To: python-list@python.org Subject: Pycharm Won't Do Long Underscore Hi Guys, I’ve just begun to le

Asynchronous generators

2020-06-23 Thread Jonathan Gossage
-- I am attempting to learn how to use asyncio and I have been unable to find any documentation or Internet posts that give information on the principles underlying asyncio, let alone any examples showing how asynchronous generators should be used. I have built a toy program to test trying to read

Re: parsing encrypted netrc file

2020-06-23 Thread Barry Scott
> On 22 Jun 2020, at 23:38, Seb wrote: > > Hello, > > What's the pythonic way to do this without polluting the user's > directory with the decrypted file? I wrongly thought this should do it: > > import os.path as osp > import gnupg > import netrc > import tempfile > > gpg = gnupg.GPG() >

Re: Floating point problem

2020-06-23 Thread Tony Flury via Python-list
On 18/04/2020 15:29, Grant Edwards wrote: On 2020-04-18, Souvik Dutta wrote: I literally tried it!!! And it did not stop because I did not get any 1.0 rather I got 0.999 But why does this happen. This is a simple math which according to normal human logic should give perfect numbers w

Re: [Python-ideas] asyncio: return from multiple coroutines

2020-06-23 Thread Pablo Alcain
Thank you very much Kyle for your answer, I am moving this conversation to the more proper python-list for whoever wants to chime in. I summarize here the key points of my original question (full question on the quoted email): I have an application that listens on two websockets through the async

Re: parsing encrypted netrc file

2020-06-23 Thread Seb
On Tue, 23 Jun 2020 02:08:19 +0100, MRAB wrote: [...] > Here's a page I found about ".netrc": > https://ec.haxx.se/usingcurl/usingcurl-netrc > and here's a page I found about ".authinfo.gpg": > https://www.emacswiki.org/emacs/GnusAuthinfo > Can you see the subtle difference? Awww nuts, I do

EuroPython 2020: Opening our Merchandise Shop

2020-06-23 Thread M.-A. Lemburg
We’re very happy to announce our very own EuroPython merchandise shop: * EuroPython Merch Shop * https://shop.spreadshirt.ie/europython/ Customize your conference t-shirt for EP2020 The shop is run on the Sprea