integer's methods

Grant Edwards grant.b.edwards at gmail.com
Sat Aug 27 15:46:48 EDT 2016


On 2016-08-27, Random832 <random832 at fastmail.com> wrote:
> On Sat, Aug 27, 2016, at 13:24, Grant Edwards wrote:
>> Becuase the parser thinks you've entered a floating point number with
>> a fractional part of "bit_length".
>
> 123.+456 doesn't think that the fractional part is "+456".

That's because the parser (or more traditionally the lexical analyzer)
treats '+' differently than it does the characters [a-zA-Z].

> (Of course, the real reason is "because it would be even more
> annoying to get random errors only with attributes that start with
> "e" or "j")

-- 
Grant Edwards               grant.b.edwards        Yow! The entire CHINESE
                                  at               WOMEN'S VOLLEYBALL TEAM all
                              gmail.com            share ONE personality --
                                                   and have since BIRTH!!




More information about the Python-list mailing list