The escape sequence \ENTER allows to split a string over 2 consecutive lines. On the other hand, it seems impossible to split a numeric litteral across multiple lines, compare :

>>> "1000\
... 000\
... 000"
'1000000000'
>>> 1000\
... 000\
File "<stdin>", line 2
    000\
^
SyntaxError: invalid syntax
>>>


Is this the general behaviour ? So, how do you edit code containing a very very long numeric constant ?
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to