Mistake in Jython interpreter

To answer the OP's question, I'd say this is a feature of Jython that allows the developer to break a single line of code up into multiple lines with comments, while still having it treated as a single line of code.

See ? With the right state of mind, everything is a feature !
You just have to believe !

1 Like

It's built-in punishment for using BASIC comment syntax.

1 Like

The glass is half full:

The glass is half empty:

:rofl::rofl::rofl:

1 Like

heh


Oke but that doesnt explain the newline behavior, as normal coments dont work like that

In Visual Basic, apostrophes behave the same way as # symbols in Python. While this Jython apostrophe commenting looks similar, it's not the same thing.

That's because it's a bug.

https://bugs.jython.org/issue2466

5 Likes

uff from 2016 yikes

2 Likes

Ye of little faith.

You must have overlooked this post:

:rofl:

2 Likes

Facts don't care about your optimism. :wink:

1 Like

Well, that's how it goes; it's a feature until somebody files a bug report:
image

You certainly found more than I was able to. How were able to identify that bug ticket? This is a skill that I would like to possess as well.

1 Like

Well, I started with 'What does it do in CPython?', which correctly returns an error.

image

Then, the Google-fu becomes "jython" EOL while scanning string literal. For me, the bug report was at the top.

5 Likes