Source formatting for long expressions.
Christopher Armstrong
radix at twistedmatrix.com
Mon Jun 10 13:17:37 EDT 2002
>>>>> "Skip" == Skip Montanaro <skip at pobox.com> writes:
Chris> Does anyone know of a tool that will beak up a very, very long
Chris> expression like this into multiple lines with sane indentation?
Skip> How about the pprint module?
I've looked at the source for pprint (on Python 2.1), and I saw nothing
that allows me to extend it with my own classes. If you check my other
replies to this thread, you can see my (stupid, but effective) solution.
--
Chris Armstrong
<< radix at twistedmatrix.com >>
http://twistedmatrix.com/users/carmstro.twistd/
More information about the Python-list
mailing list