Paddy
1/25/2008 1:35:00 AM
On 25 Jan, 00:36, kj <so...@987jk.com.invalid> wrote:
> I've only recently started programming in Python, trying to wean
> myself from Perl. One of the things I *really* miss from Perl is
> a 100% mouse-free data inspector, affectionally known as the Perl
> debugger, PerlDB, or just perl -d. With it I can examine the most
> elaborate data structures with ease:
>
> DB<234> |x %one_most_elaborate_data_structure
>
> ...and miles of data, paged for leisurely browsing, lie at my feet.
>
> And, since it's text-based, I can run it within a shell in Emacs,
> and transfer anything I want between it and an editing buffer
> without even a THOUGHT of touching the filthy mouse! If there's
> a greater joy in life I have yet to find it.
>
> Now, I have NO DOUBT in my mind WHATSOEVER that a plethora of simply
> amazing GRAPHICAL data inspectors (or the equivalent) exist for
> Python, with exquisite features, animation, sound effects,
> scratch-and-sniff, massage, built-in spiritual advisor, you-name-it.
> Beautiful stuff, no doubt.
>
> But an old geezer like me likes to keep his knobby hands on the
> keyboard at all times, so that his arthritic shoulder keeps quiet...
>
> So. Can I hope to find a text-based data inspector for Python?
>
> kynn
> --
> NOTE: In my address everything before the first period is backwards;
> and the last period, and everything after it, should be discarded.
I tend to do the following at the python prompt:
from pprint import pprint as pp
Then I can:
pp(my_data)
- Paddy.