2010-06-20 21:34:36 |
Eike |
description |
If user defined classes are printed at compile time (with the printc function), their __str__ method is not called. Instead they are rendered as an (ugly in this context) generic ASCII art tree. |
If user defined classes are printed at compile time (with the printc function), their __str__ method is not called. Instead they are rendered as an (ugly in this context) generic ASCII art tree.
Therefore call user defined __str__ method also from printc function.
The current behavior is a regression with regards to the old print function!
|
|
2012-02-29 20:48:37 |
Eike |
description |
If user defined classes are printed at compile time (with the printc function), their __str__ method is not called. Instead they are rendered as an (ugly in this context) generic ASCII art tree.
Therefore call user defined __str__ method also from printc function.
The current behavior is a regression with regards to the old print function!
|
If user defined classes are printed at compile time (with the printc function), their __str__ method is not called. Instead they are rendered as an (ugly in this context) generic ASCII art tree.
Therefore call user defined __str__ method also from printc function.
Therefore call user defined __str__ method also from printc function.
The current behavior is a regression with regards to the old print function! |
|