Show More
@@ -94,7 +94,7 b' Special methods' | |||||
94 | Pretty printing |
|
94 | Pretty printing | |
95 | """"""""""""""" |
|
95 | """"""""""""""" | |
96 |
|
96 | |||
97 | To customize how your object is pretty-printed, add a `_repr_pretty_` method |
|
97 | To customize how your object is pretty-printed, add a ``_repr_pretty_`` method | |
98 | to the class. |
|
98 | to the class. | |
99 | The method should accept a pretty printer, and a boolean that indicates whether |
|
99 | The method should accept a pretty printer, and a boolean that indicates whether | |
100 | the printer detected a cycle. |
|
100 | the printer detected a cycle. |
General Comments 0
You need to be logged in to leave comments.
Login now