Skip to content

Instantly share code, notes, and snippets.

@fperez
Created September 18, 2010 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fperez/585407 to your computer and use it in GitHub Desktop.
Save fperez/585407 to your computer and use it in GitHub Desktop.
"""Callable object, to test various parts of ipython's info system.
Run this file and then do f(, g( or c( or c.method( in the qt gui to see the
various tooltips.
"""
class Call(object):
"""This is the class docstring."""
def __init__(self, x, y=1):
"""This is the constructor docstring."""
def __call__(self, *a, **kw):
"""This is the call docstring."""
def method(self, x, z=2):
"""Some method's docstring"""
def f(x, y=2, *a, **kw):
"""A simple function."""
def g(y, z=3, *a, **kw):
pass # no docstring
c = Call(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment