[Python-ideas] 1_000_000
Cameron Simpson
cs at zip.com.au
Sat May 7 06:30:09 CEST 2011
On 07May2011 00:41, MRAB <python at mrabarnett.plus.com> wrote:
| As far as I remember, Ada also permits it,
That's where I first encountered it myself.
| but has the rule that it can
| occur only between digits. If we follow that, then:
|
| 1_2345_6789 => Yes
| 1_2_3_4_5 => Yes
| 1_234_6789 => Yes
| 1_ => No
| _1 => No
| 1__234 => No
| 9.876_543_210 => Yes
| 9._876_543_210 => No
| 9_.876_543_210 => No
| 0xFEFF_0042 => Yes
| int('123_456') => Yes
+1 to this.
Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
It is impossible to travel faster than light, and certainly not desirable as
ones hat keeps blowing off. - Woody Allen
More information about the Python-ideas
mailing list