Numeric literal syntax
fredrik at pythonware.com
Thu Sep 4 16:53:53 CEST 2008
Alexander Schmolck wrote:
>> A problem is that '1234' in Python is a string, so using ' in numbers
>> looks a bit dangerous to me (and my editor will color those numbers as
>> alternated strings, I think).
> Yeah, editors, especially those with crummy syntax highlighting (like emacs)
> might get it wrong. This should be easy enough to fix though.
instead of forcing all editor developers to change their Python modes to
allow you to use a crude emulation of a typographic convention in your
Python source code, why not ask a few of them to implement the correct
typographic convention (thin spaces) in their Python mode?
More information about the Python-list