invert or reverse a string... warning this is a rant

Steven D'Aprano steve at
Sat Oct 21 09:13:07 CEST 2006

On Sat, 21 Oct 2006 01:58:33 -0500, Ron Adam wrote:

> [You said from an earlier post...]
>> (That's a complaint I have about the dis module -- it prints its results,
>> instead of returning them as a string. That makes it hard to capture the
>> output for further analysis.)
> I have a rewritten version of dis just sitting on my hard disk that fixes 
> exactly that issue.  It needs to be updated to take into account some newer 2.5 
> features and the tests will need to be updated so they retrieve dis's output 
> instead of redirecting stdout.  If you'd like to finish it up and submit it as a 
> patch, I can forward it to you.  It would be good to have a second set of eyes 
> look at it also.

I'm certainly willing to look at it; as far as submitting it as a patch, I
have no idea what the procedure is. Maybe we can find out together heh? :-)


More information about the Python-list mailing list