[issue46521] compile_command not raising syntax error when command ends with triple quotes

2022-01-25 Thread Tushar Sadhwani
New submission from Tushar Sadhwani : compile_command used to raise error for this until Python 3.9: ``` >>> import code >>> code.compile_command("abc def '''") Traceback (most recent call last): File "", line 1, in File "/

[issue46521] compile_command not raising syntax error when command ends with triple quotes

2022-01-25 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: wontfix would really suck, because that would mean every REPL written with the `code` module will be broken, even IPython: ``` $ ipython Python 3.10.0 (default, Oct 11 2021, 05:33:59) [GCC 11.2.0] Type 'copyright', 'credits' o

[issue46521] compile_command not raising syntax error when command ends with triple quotes

2022-01-25 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: You're right. There was another bug in my code that was causing the SyntaxError to not show up at all, sorry about that. Can you help me figure out why this bug doesn't show up in the normal Python REPL? ``` >>> abc def ''&#

[issue44973] @classmethod can be stacked on @property, but @staticmethod cannot

2021-08-21 Thread Tushar Sadhwani
New submission from Tushar Sadhwani : Starting with Python3.9, `@classmethod` can be stacked on top of `@property`, but it seems that `@staticmethod` cannot. >>> class C: ... @classmethod ... @property ... def cm(cls): ... return cls.__name__ ... @sta

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-11 Thread Tushar Sadhwani
New submission from Tushar Sadhwani : turtledemo.colormixer crashes after (what i'm assuming) 1000 changes to the state of a color bar. # Error: PS C:\Users\tusha> python -m turtledemo.colormixer Fatal Python error: Cannot recover from stack overflow. Python runtime state: ini

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-12 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: pyenv is a python version management tool. But this issue has nothing to do with it. I ran the same thing on python 3.8.5 (both 32 and 64bit) and the same error occured C:\Users\tusha\AppData\Local\Programs\Python\Python38-32>python.exe Python 3.8.5 (t

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-12 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: Also, forgot to add The app crashes pretty quickly for me, to reproduce the error all I have to do is run the colormixer demo and move any of the bars up and down a couple of times. -- ___ Python tracker

[issue41758] turtledemo.colormixer crashes with a stack overflow

2020-09-13 Thread Tushar Sadhwani
Tushar Sadhwani added the comment: Ran the following tests on Python 3.8.5 32bit colormixer crashed with the same error, python -m turtle did not crash Here's the output of the test suite: PS C:\Users\tusha\AppData\Local\Programs\Python\Python38-32> .\python.exe -m test -