New generic inspect_object

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

New generic inspect_object

Ville M. Vainio
I just checked in a new generic function "inspect_object".

Basically, you can use it to customize how your objects are displayed
when you do




Hypothetical examples: a "path" object could launch an explorer window
in the directory if the path points to a directory, an image object
could launch a window displaying the image etc. etc.

Modern syntax would be:

def my_display(obj):
  print "Inspecting",obj

Ville M. Vainio - - g[mail | talk]='vivainio'
IPython-dev mailing list
[hidden email]