[BUG] console.print
failed to render weakref.proxy
objects
#3656
Labels
console.print
failed to render weakref.proxy
objects
#3656
Describe the bug
Edit this with a clear and concise description of what the bug.
Provide a minimal code example that demonstrates the issue if you can. If the issue is visual in nature, consider posting a screenshot.
A
weakref.proxy
object can be used as the wrapped object when the object is not GC-ed. Then the object is finalized, the accessing the attributes of theweakref.proxy
object will raiseRefereenceError
.The
weakref.proxy
type has a proper__repr__
to handle the dead reference butrich
traverse tries to inspec theproxy
object and that will raise errors when the referenced object is gone.Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
If you're using Rich in a Jupyter Notebook, run the following snippet in a cell
and paste the output in your bug report.
The text was updated successfully, but these errors were encountered: