Message54671
Logged In: YES
user_id=1375527
Sorry, but maybe I could just interject here. Walter's sub-
classing example works fine, except for the fact that if the
string is short enough, it gets handled slightly differently and
the format() override gets bypassed. I worked around this by
shortening the width, but I've found that this screws with a lot
of the nice formatting of other structures, and so basically
creates a new set of problems. If the "format() bypass"
limitation can be removed, I think it would allow for more
reliable extensibility by subclassing PrettyPrinter. |
|
Date |
User |
Action |
Args |
2007-08-23 16:11:29 | admin | link | issue1351692 messages |
2007-08-23 16:11:29 | admin | create | |
|