Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2 KB

index.rst

File metadata and controls

75 lines (52 loc) · 2 KB

see: dir for humans

.. module:: see


Release v|release|.

https://travis-ci.org/araile/see.svg?branch=develop https://coveralls.io/repos/github/araile/see/badge.svg?branch=develop

see is a friendly alternative to the dir function in Python. It shows you a summary of what you can do with an object.

Supports Python 2.6+ and 3.3+. Also works in iPython and PyPy.

See in action

Compare the following:

>>> dir([])
['__add__', '__class__', '__contains__', '__delattr__', '__delit
em__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '
__getattribute__', '__getitem__', '__gt__', '__hash__', '__iadd_
_', '__imul__', '__init__', '__init_subclass__', '__iter__', '__
le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__r
educe__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__
', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__sub
classhook__', 'append', 'clear', 'copy', 'count', 'extend', 'ind
ex', 'insert', 'pop', 'remove', 'reverse', 'sort']
>>> see([])
    []            in            +             +=            *
    *=            <             <=            ==            !=
    >             >=            dir()         hash()
    help()        iter()        len()         repr()
    reversed()    str()         .append()     .clear()
    .copy()       .count()      .extend()     .index()
    .insert()     .pop()        .remove()     .reverse()
    .sort()

Contents

.. toctree::
   :maxdepth: 2

   install
   api
   license


Indices and tables