Created
September 18, 2010 06:06
-
-
Save fperez/585407 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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