New GitHub issue #110912 from chgnrdv:<br>

<hr>

<pre>
# Bug report

### Bug description:

After e7331365b488382d906ce6733ab1349ded49c928:
```python
>>> raise MemoryError()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
object address  : 0x7fd3b6037540
object refcount : 3
object type     : 0x556d6e04cf40
object type name: MemoryError
object repr     : MemoryError()
lost sys.stderr
```

cc @pablogsal 

### CPython versions tested on:

CPython main branch

### Operating systems tested on:

Linux
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/110912">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>