Numeric literal syntax

Alan G Isaac alan.isaac at
Sun Sep 7 01:30:03 CEST 2008

> bearophileHUGS at writes:
>> For Python 2.7/3.1 I'd now like to write a PEP regarding the
>> underscores into the number literals, like: 0b_0101_1111, 268_435_456
>> etc.
> +1 on such a capability.
> -1 on underscore as the separator.

On 9/1/2008 9:13 PM Ben Finney apparently wrote:
> When you proposed this last year, the counter-proposal was made
> <URL:>
> to instead use white space for the separator, exactly as one can now
> do with string literals.

Repeating a mistake means two mistakes.

But I would hate less the use of nobreak spaces,
since any decent editor can reveal them.

Alan Isaac

More information about the Python-list mailing list