| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Can you review this for me @corona10 ? |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
+ Coverage 68.65% 68.66% +<.01%
==========================================
Files 59 59
Lines 10525 10528 +3
==========================================
+ Hits 7226 7229 +3
Misses 2790 2790
Partials 509 509
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was a problem hiding this comment.
This patch will fix this issue #78 .
But the input of '#' should be handled as same as below code?
Should we update grammar file for this?
[Gpython dev]
- os/arch: darwin/amd64
- go version: go1.10
>>> def a(): pass
>>>
Sorry, something went wrong.
|
This is the example of pypy and rustpython. Python 3.6.1 (dab365a465140aa79a5f3ba4db784c4af4d5c195, Feb 18 2019, 10:53:27)
[PyPy 7.0.0-alpha0 with GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``"it's likely temporary until
forever" arigo''
>>>> #
>>>> #
>>>>Welcome to the magnificent Rust Python 0.1.0 interpreter 😱 🖖
>>>>> #
>>>>> |
Sorry, something went wrong.
|
And it still doesn't work well on my local laptop with branch fix-78-repl bcb3785 Python 3.4.0 (none, unknown) [Gpython dev] - os/arch: darwin/amd64 - go version: go1.10 >>> # ... # ... |
Sorry, something went wrong.
Ah you are right this is broken :-( The pypy and rustpython ways of doing it are
Shall I make it work like that? |
Sorry, something went wrong.
|
@ncw |
Sorry, something went wrong.
Before this change, entering a comment in the REPL caused the REPL to read the comment indefinitely effectively breaking it. After this change the behaviour is the same as pypy. The cpython behaviour is slightly different printing a '...' after a comment line. This is rather illogical and difficult to emulate properly.
|
OK I did that! PTAL |
Sorry, something went wrong.
|
Line 375 in 2609237 Can we fix this issue on lexer level approach? |
Sorry, something went wrong.
|
@ncw |
Sorry, something went wrong.
|
I think this is good to go now. I don't think fixing it in the lexer is the right place - this is specifically to do with how the REPL works and in particular how the single input grammar works which is a bit strange but it is how the Python grammar is defined. I'll merge this now and if there are any problem with it I'm sure we can fix them up :-) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Before this change, entering a comment in the REPL caused the REPL to
read the comment indefinitely effectively breaking it.
After this change the behaviour should be exactly the same as python3/