On 18 November 2017 at 09:03, Neil Girdhar wrote:
> On Fri, Nov 17, 2017 at 3:15 AM Nick Coghlan wrote:
>> I'll note that an interesting side effect of
>> https://www.python.org/dev/peps/pep-0560/#mro-entries will be to allow
>> folks to write:
>>
>> class MyCustomMRO:
>> def __init__
On Sat, Nov 18, 2017 at 9:34 AM Nick Coghlan wrote:
> On 18 November 2017 at 09:03, Neil Girdhar wrote:
> > On Fri, Nov 17, 2017 at 3:15 AM Nick Coghlan wrote:
> >> I'll note that an interesting side effect of
> >> https://www.python.org/dev/peps/pep-0560/#mro-entries will be to allow
> >> folk
Python allows underscore character as a separator in variables.
This is better than nothing, still it does not make the look much better.
**Proposal**: allow additional separator, namely hyphen character.
**Benefits**: this should provide significant readability improvement.
Compared to most synt
What will the hyphen bring to what is already allowed with underscore?
It is not possible to break compatibility with '-' character.
2017-11-19 3:01 GMT+01:00 Mikhail V :
> Python allows underscore character as a separator in variables.
> This is better than nothing, still it does not make the lo
On Sun, Nov 19, 2017 at 1:01 PM, Mikhail V wrote:
> Python allows underscore character as a separator in variables.
> This is better than nothing, still it does not make the look much better.
>
> **Proposal**: allow additional separator, namely hyphen character.
>
> **Benefits**: this should provi
On 19 November 2017 at 06:56, Neil Girdhar wrote:
> Would you mind explaining why it's necessary for C3 to complain?
>
> In:
>
> S < C
> B < S, E
> R < E, C
> Z < B, R
>
> If Z is told to have MRO:
>
> (Z, B, S, R, E, C)
>
> then there are no conflicts with any base classes.
I don't actually know
On 19 November 2017 at 12:01, Mikhail V wrote:
> Python allows underscore character as a separator in variables.
> This is better than nothing, still it does not make the look much better.
>
> **Proposal**: allow additional separator, namely hyphen character.
Regardless of any potential readabili
On 19 November 2017 at 12:32, Nick Coghlan wrote:
> On 19 November 2017 at 12:01, Mikhail V wrote:
>> Python allows underscore character as a separator in variables.
>> This is better than nothing, still it does not make the look much better.
>>
>> **Proposal**: allow additional separator, namely
Chris A wrote:
> Both of these create extremely confusing situations, where two
> nearly-identical symbols have completely different meanings.
In reality, hyphen and Minus sign are not even closely similar -
Minus is ca. twice as wide, however the citizens of the Monospaced
Kingdom may disagree ;
On 19 November 2017 at 13:22, Mikhail V wrote:
> For me, one "cheap" solution against underscores is to use
> syntax highlighting which grays them out, but if those become like
> spaces, then it becomes a bit confusing, e.g. in function with many arguments.
> Also, unfortunately, not many editors
On Sun, Nov 19, 2017 at 3:42 AM, Nick Coghlan wrote:
> For anyone tempted to suggest "What about multiple underscores
> indicating continuation of the variable name?", that's still a
> compatibility problem due to the unary minus operator:
>
> >>> my--variable
> 2
> >>> my---variable
Python does not use U+2010 HYPHEN for the minus operator, it uses the
U+002D (-) HYPHEN-MINUS.
In some monospace fonts, there is a subtle difference between U+002D,
U+2013 EN DASH, and U+2014 EM DASH, but it's usually hard to tell them
*all* apart.
If you want to make a proposal, I'd suggest that
On Sat, Nov 18, 2017 at 8:44 PM, Mikhail V wrote:
>
>
> That seems to be another showcase of misfotune that Python
> uses hyphen for minus operator. I know it is not language designer's
> fault, because basic ASCII simply did not not include minus character.
> But do you realise that the **current
19.11.17 04:01, Mikhail V пише:
Python allows underscore character as a separator in variables.
This is better than nothing, still it does not make the look much better.
**Proposal**: allow additional separator, namely hyphen character.
You already can use "separators" different from the under
Note that Python already allows Unicode characters from class "connector
punctuations (Pc)" in identifiers.
No dashes in that, but if you are into that kind of thing,
then this⁀is⁀a⁀valid⁀identifier .
Stephan
Op 19 nov. 2017 08:13 schreef "Bruce Leban" :
>
> On Sat, Nov 18, 2017 at 8:44 PM, Mik
15 matches
Mail list logo