Python icon indicating copy to clipboard operation
Python copied to clipboard

Multiline comments in Python doesn't compile

Open kenny-evitt opened this issue 9 years ago • 2 comments

Copied from the original comment in LightTable/LightTable#1200:

OS : Debian testing Lighttable version : 0.6.2 (64 bit) (binary version 0.8.4) Python version : 2.7.6

How to reproduce :

  • create a new file "test.py" and open it in LighTable
  • create a multiline comment
'''  
This  
is a  
multiline  
comment  
'''
  • execute the file (CTRL + SHIFT + ENTER)

Current results : Stacktrace saying "SyntaxError: EOF while scanning triple-quoted string literal"

Expected results : normal compilation.

Note on Python comments:

  • The "standard" comment used in Python is the '#' character (http://docs.python.org/2/reference/lexical_analysis.html?highlight=comment#comments)
  • However, multiline comments using triple quotes works in a Python interpreter. Moreover, this usage is validated by Guido van Rossum in a tweet. (https://twitter.com/gvanrossum/status/112670605505077248)

Thanks !

EDIT : Change the code block to correctly displayed the line break. Change the shortcut to execute the file to CTRL + SHIFT + ENTER

kenny-evitt avatar Jan 06 '16 17:01 kenny-evitt

Any, progress on this issue?

javiqm12 avatar May 24 '16 04:05 javiqm12

@javiqm12 We dropped support for this plugin because none of the core team works with Python. We'd love for someone to takeover maintining this, but no one's stepped up yet.

kenny-evitt avatar May 24 '16 23:05 kenny-evitt