[issue35703] Underscores in numeric literals cannot be before or after decimal (.)

2019-01-10 Thread Yoong Hor Meng
Change by Yoong Hor Meng : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35703] Underscores in numeric literals cannot be before or after decimal (.)

2019-01-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is intentional, see . In floating point literals the underscores must always be between two digits. -- nosy: +ronaldoussoren resolution: -> not a bug status: op

[issue35703] Underscores in numeric literals cannot be before or after decimal (.)

2019-01-10 Thread Yoong Hor Meng
New submission from Yoong Hor Meng : s = 1_234.567_8 print(float(s)) # It works s = 1_234._567 print(float(s)) # It does not work s = 1_234_.567 print(float(s)) # It does not work too -- components: Interpreter Core messages: 68 nosy: yoonghm priority: normal severity: normal s