Skip to content

Instantly share code, notes, and snippets.

@fperez

fperez/calltips.py

Created Sep 18, 2010
Embed
What would you like to do?
"""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
You can’t perform that action at this time.