See(), an alternative to Python's dir()(github.com)
github.com
See(), an alternative to Python's dir()
http://github.com/inky/see/tree/master
12 comments
There's also python print_r
http://wiki.github.com/marcbelmont/python-print_r
[deleted]
Installed, I like it. I do a lot of one-off Python with unfamiliar libs and that's just the thing.
Mapped it to der() ... because that just feels better, I guess.
Mapped it to der() ... because that just feels better, I guess.
"Help us out here, Computer. This just will not cut it. Blimey!"
I enjoyed their documentation style.
I enjoyed their documentation style.
ehh, this is just (questionable) formatting. After you use python for a while, the __methods__ should become pretty common-sensical (and seeing the actual __name__ is more useful if you're trying to reimplement protocols common objects support). That and not being able to manipulate the output of see() makes it pretty useless.
I personally like doing things like [f for f in dir(o) if 'foo' in f] etc.
I personally like doing things like [f for f in dir(o) if 'foo' in f] etc.
This was only intended as an alternative, not a replacement -- dir() is still extremely useful. see() was made for quickly inspecting objects interactively, hence "for humans only".
Nice idea. I decided I'd rather see it laid out in columns like 'ls' does, and with the attribute names unchanged. Here's the result: http://github.com/darius/columnize/blob/69d2b1c084ab3fc7c72d...
In case someone else is an Arch Linux user and wants to use this, I uploaded a pkgbuild to AUR.
http://aur.archlinux.org/packages.php?ID=24014
http://aur.archlinux.org/packages.php?ID=24014
Ipython makes introspection 3.14 times more fun.