-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New REPL Traceback Not Formatted Correctly #123178
Labels
Comments
confirmed on linux |
I tested it on Ubuntu 22 and didn't encounter the issues mentioned, Maybe it's because my computer isn't a MacOS
|
ambv
added a commit
to ambv/cpython
that referenced
this issue
Sep 6, 2024
This switches the main pyrepl event loop to always be non-blocking so that it can listen to incoming interruptions from other threads. This also resolves invalid display of exceptions from other threads (pythongh-123178).
ambv
added a commit
to ambv/cpython
that referenced
this issue
Sep 6, 2024
This switches the main pyrepl event loop to always be non-blocking so that it can listen to incoming interruptions from other threads. This also resolves invalid display of exceptions from other threads (pythongh-123178).
ambv
added a commit
that referenced
this issue
Sep 6, 2024
This switches the main pyrepl event loop to always be non-blocking so that it can listen to incoming interruptions from other threads. This also resolves invalid display of exceptions from other threads (gh-123178). This also fixes freezes with pasting and an active input hook.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 6, 2024
…123795) This switches the main pyrepl event loop to always be non-blocking so that it can listen to incoming interruptions from other threads. This also resolves invalid display of exceptions from other threads (pythongh-123178). This also fixes freezes with pasting and an active input hook. (cherry picked from commit 033510e) Co-authored-by: Łukasz Langa <[email protected]>
ambv
added a commit
that referenced
this issue
Sep 6, 2024
… (#123799) This switches the main pyrepl event loop to always be non-blocking so that it can listen to incoming interruptions from other threads. This also resolves invalid display of exceptions from other threads (gh-123178). This also fixes freezes with pasting and an active input hook. (cherry picked from commit 033510e) Co-authored-by: Łukasz Langa <[email protected]>
Fixed by #123799. |
I just tried with 3.13.0rc2 and I get a >>> import threading
>>> thread = threading.Thread(target=lambda: threading.current_thread().name == 'MainThread')
>>> thread.run()
>>> thread.join()
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
thread.join()
~~~~~~~~~~~^^
File "/Users/codyscott_1/.pyenv/versions/3.13.0rc2/lib/python3.13/threading.py", line 1083, in join
raise RuntimeError("cannot join thread before it is started")
RuntimeError: cannot join thread before it is started
>>> thread.start()
>>>
Exception in Thread-1 (<lambda>):
Traceback (most recent call last):
File "/Users/codyscott_1/.pyenv/versions/3.13.0rc2/lib/python3.13/threading.py", line 991, in run
if self._target is not None:
^^^^^^^^^^^^
AttributeError: 'Thread' object has no attribute '_target'. Did you mean: '_started'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/codyscott_1/.pyenv/versions/3.13.0rc2/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "/Users/codyscott_1/.pyenv/versions/3.13.0rc2/lib/python3.13/threading.py", line 996, in run
del self._target, self._args, self._kwargs
^^^^^^^^^^^^
AttributeError: 'Thread' object has no attribute '_target'
>>>
KeyboardInterrupt |
I get the same
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Bug description:
At first I thought it was because the window was small but it happens even if the window is large.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: