[issue45812] SystemError when using code.interact

2021-11-16 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

In that case don't worry. I prefer that you report potential bugs without 
waiting if that's ok with you, my comment was just in case you are familiar 
with compiling from the CPython repo.

Thanks for all the help!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45812] SystemError when using code.interact

2021-11-16 Thread Andre Roberge


Andre Roberge  added the comment:

I am sorry, but I am not set up to work from the main branch and must rely on 
official releases.  In the future, for alpha and beta releases, I will try to 
wait for the next release, see immediately if I can reproduce bugs that I had 
noted before, and submit then at that time.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45812] SystemError when using code.interact

2021-11-16 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

You seem to be using commit e2b4e4b (the release commit), but this issue was 
fixed very likely in https://bugs.python.org/issue45738.

Could you confirm that you cannot reproduce this with the latest main branch? 
In general, I would kindly recommend to always do this check when opening a new 
issue :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45812] SystemError when using code.interact

2021-11-16 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

Same with 3.10:

❯ ./python.exe
Python 3.10.0+ (heads/3.10:7c99e434a9, Nov 16 2021, 09:03:07) [Clang 12.0.0 
(clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
   ^
SyntaxError: unexpected character after line continuation character
>>> import code
>>> code.interact()
Python 3.10.0+ (heads/3.10:7c99e434a9, Nov 16 2021, 09:03:07) [Clang 12.0.0 
(clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
   ^
SyntaxError: unexpected character after line continuation character

and 3.9:

❯ ./python.exe
Python 3.9.9+ (heads/3.9:a40d066e8e, Nov 16 2021, 09:02:19)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
   ^
SyntaxError: unexpected character after line continuation character
>>> import code
>>> code.interact()
Python 3.9.9+ (heads/3.9:a40d066e8e, Nov 16 2021, 09:02:19)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
   ^
SyntaxError: unexpected character after line continuation character

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45812] SystemError when using code.interact

2021-11-16 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

I cannot reproduce this in the main branch:

❯ ./python.exe
Python 3.11.0a2+ (heads/main:9bf2cbc4c4, Nov 16 2021, 08:59:12) [Clang 12.0.0 
(clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import code
>>> code.interact()
Python 3.11.0a2+ (heads/main:9bf2cbc4c4, Nov 16 2021, 08:59:12) [Clang 12.0.0 
(clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
   ^
SyntaxError: unexpected character after line continuation character
>>> ^D
now exiting InteractiveConsole...
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
   ^
SyntaxError: unexpected character after line continuation character

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45812] SystemError when using code.interact

2021-11-16 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

What versions does this affect? Only the main branch?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45812] SystemError when using code.interact

2021-11-15 Thread Andre Roberge


New submission from Andre Roberge :

In the following, I execute a single invalid statement in the Python 
interpreter, which gives the correct error message. Afterwards, I repeat this 
example using code.interact(), generating a different traceback. This issue 
affects IDLE differently as shown in the attached file: the statement is never 
considered to be complete.

===
Python 3.11.0a2 (tags/v3.11.0a2:e2b4e4b, Nov  5 2021, 20:00:05) [MSC v.1929 64 
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 3 \ 4
  File "", line 1
a = 3 \ 4
^
SyntaxError: unexpected character after line continuation character
>>> import code
>>> code.interact()
Python 3.11.0a2 (tags/v3.11.0a2:e2b4e4b, Nov  5 2021, 20:00:05) [MSC v.1929 64 
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> a = 3 \ 4
...
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\code.py", 
line 301, in interact
console.interact(banner, exitmsg)
^
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\code.py", 
line 232, in interact
more = self.push(line)
   ^^^
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\code.py", 
line 258, in push
more = self.runsource(source, self.filename)
   ^
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\code.py", 
line 63, in runsource
code = self.compile(source, filename, symbol)
   ^^
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\codeop.py", 
line 185, in __call__
return _maybe_compile(self.compiler, source, filename, symbol)
   ^^^
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\codeop.py", 
line 96, in _maybe_compile
code2 = compiler(source + "\n\n", filename, symbol)
^^^
  File "C:\Users\andre\AppData\Local\Programs\Python\Python311\lib\codeop.py", 
line 150, in __call__
codeob = compile(source, filename, symbol, self.flags, True)
 ^^^
SystemError: Negative size passed to PyUnicode_New

--
components: Parser
files: idle_problem.png
messages: 406381
nosy: aroberge, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: SystemError when using code.interact
versions: Python 3.11
Added file: https://bugs.python.org/file50441/idle_problem.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com