output formatting for user-defined types

Russ uymqlp502 at sneakemail.com
Wed Apr 5 21:31:17 EDT 2006


Thanks, but that is not acceptable for my application. Any other ideas?

I thought I might be able to overload __rmod__, but apparently python
applies the % operator before __rmod__ is even invoked if the left-hand
argument is a string.




More information about the Python-list mailing list