[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pycharm Won't Do Long Underscore

On Thu, Jun 25, 2020 at 3:51 AM Dennis Lee Bieber <wlfraed at> wrote:
> On Tue, 23 Jun 2020 20:49:36 +0000, Tony Kaloki <tkaloki at>
> declaimed the following:
> >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?
>         There is no "long underscore" in the character set. If there were,
> Python would not know what to do with it as it was created back when ASCII
> and ISO-Latin-1 were the common character sets. (Interesting: Windows
> Character Map utility calls the underscore character "low line").

That's what Unicode calls it - charmap is probably using that name.

>         Many word processors are configured to change sequences of hyphens:
> - -- --- into - ? ? (hyphen, en-dash, em-dash)... But in this case, those
> are each single characters in the character map (using Windows-Western,
> similar to ISO-Latin-1): hyphen is x2D, en-dash is x96, em-dash is x97
> (note that en-/em-dash are >127, hence would not be in pure ASCII)

Hyphen is U+002D, en dash is U+2013, em dash is 2014. :)