Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
No, and there can't be. In the first case, it's a literal and it can be parsed in a special way. In the second case, it's an expression. There's no way for the language to differentiate what you mean from any normal expression.
See example grammar for how float literals are parsed. It regards older version of python, but I can't find it in the grammar of recent versions.