You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the rich documentation should be updated.
It presents rich.print as a "drop-in replacement for print".
However, that statement is very misleading, as the developers themselves admit:
That is correct. There are a few other differences as well.
- #1366 (comment)
After spending several hours tracking down why my output files had extra line breaks, I really wish the differences with print were listed in the docs, instead of pretending to be a drop-in replacement.
I also would stop recommending people overload print, unless they want surprises later. Had I used from rich import print as rprint, I probably would have understood that rich was responsible much faster.
Thanks
Etienne
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Linux
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
Describe the bug
I believe the
rich
documentation should be updated.It presents
rich.print
as a "drop-in replacement forprint
".However, that statement is very misleading, as the developers themselves admit:
After spending several hours tracking down why my output files had extra line breaks, I really wish the differences with
print
were listed in the docs, instead of pretending to be a drop-in replacement.I also would stop recommending people overload
print
, unless they want surprises later. Had I usedfrom rich import print as rprint
, I probably would have understood thatrich
was responsible much faster.Thanks
Etienne
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Linux
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:
The text was updated successfully, but these errors were encountered: