;ò
ÎÑAHc           @   sÖ	  d  Z  d k Z d k Z d k Z d k Z d k Z d k Z d k Z d k Z d k	 Z	 d k
 Z
 d k Z d k Z y d k Z Wn e j
 o e Z n Xe i Z y e Wn% e j
 o d k Z e i Z n Xy e Wn" e j
 o e e d „ Z n Xy d k Z Wn e j
 o e Z n Xy d k Z Wn e j
 o e Z n Xd k l Z d k Z y d k l Z l Z Wn e j
 o e Z e Z n Xd k l  Z  d d d d	 d
 d d d d d d d d d d d d d d d d g Z! e i" e# ƒ d e$ f d „  ƒ  YZ% y e& d e e% e ƒ ƒ Wn" e' j
 o e& Z( d „  Z& n Xe$ ƒ  Z) e) d „ Z* d  „  Z+ d! e$ f d" „  ƒ  YZ, d# e, f d$ „  ƒ  YZ- e- ƒ  Z. d% e, f d& „  ƒ  YZ/ d' e, f d( „  ƒ  YZ0 d) e, f d* „  ƒ  YZ1 d+ e, f d, „  ƒ  YZ2 d- e, f d. „  ƒ  YZ3 d/ e, f d0 „  ƒ  YZ4 d1 e$ f d2 „  ƒ  YZ5 d3 e5 f d4 „  ƒ  YZ6 d5 d6 „ Z7 e i8 e7 ƒ Z7 d5 d7 „ Z9 e7 i: e ƒ e9 ƒ d5 d8 „ Z; e7 i: e) ƒ e; ƒ d5 d9 „ Z< e7 i= e> ƒ e< ƒ d5 d: „ Z? e7 i= e@ ƒ e? ƒ d5 d; „ ZA e7 i= eB ƒ eA ƒ d5 d< „ ZC e7 i= eD ƒ eC ƒ e7 i= eE ƒ eC ƒ e7 i= eF ƒ eC ƒ d5 d= „ ZG e7 i= eH ƒ eC ƒ d5 d> „ ZI e7 i= e i ƒ eI ƒ d5 d? „ ZJ e7 i= e iK ƒ eJ ƒ d5 d@ „ ZL e7 i= e iM ƒ eL ƒ d5 dA „ ZN e7 i= e iO ƒ eN ƒ d5 dB „ ZP e7 i= eQ ƒ eP ƒ d5 dC „ ZR e7 i= eS ƒ eR ƒ d5 dD „ ZT e7 i= e ƒ eT ƒ e7 i= eU ƒ eT ƒ d5 dE „ ZV e7 i= eW ƒ eV ƒ e7 i= e	 iX ƒ eV ƒ dF „  ZY d5 dG „ ZZ e i8 eZ ƒ ZZ d5 dH „ Z[ eZ i= eH ƒ e[ ƒ dI „  Z\ dJ „  Z] dK „  Z^ e i8 e^ ƒ Z^ d e6 f dL „  ƒ  YZ_ d e i f dM „  ƒ  YZ` dN „  Za e^ i= e` ƒ ea ƒ d5 dO „ Zb e7 i= e` ƒ eb ƒ d e5 f dP „  ƒ  YZc d e5 f dQ „  ƒ  YZd d	 e5 f dR „  ƒ  YZe d
 e$ f dS „  ƒ  YZf d e5 f dT „  ƒ  YZg d e$ f dU „  ƒ  YZh d e5 f dV „  ƒ  YZi dW e$ f dX „  ƒ  YZj dY e5 e f dZ „  ƒ  YZk d[ e f d\ „  ƒ  YZl d e5 f d] „  ƒ  YZm d e5 f d^ „  ƒ  YZn d_ e$ f d` „  ƒ  YZo d e5 f da „  ƒ  YZp d e6 f db „  ƒ  YZq d e5 f dc „  ƒ  YZr d e6 f dd „  ƒ  YZs d e6 f de „  ƒ  YZt d e6 f df „  ƒ  YZu d e6 f dg „  ƒ  YZv dh Zw di „  Zx dj e$ f dk „  ƒ  YZy d ey f dl „  ƒ  YZz dm e$ f dn „  ƒ  YZ{ d e5 f do „  ƒ  YZ| dp „  Z} d k~ Z~ d ey f dq „  ƒ  YZ dr e5 f ds „  ƒ  YZ€ y dt k l Z WnS e j
 oG y du k‚ l‚ Z‚ Wn e j
 o e Zƒ qQ	Xe‚ Zƒ e! i„ dv ƒ n Xe Zƒ e! i„ dw ƒ e e j	 od dx „  Z… e i† i= ey ƒ e… ƒ dy „  Z‡ e i† i= e5 ƒ e‡ ƒ dz „  Zˆ e i† i= e5 i‰ ƒ eˆ ƒ n d{ „  ZŠ eŠ ƒ  d S(|   s.  
``ipipe`` provides classes to be used in an interactive Python session. Doing a
``from ipipe import *`` is the preferred way to do this. The name of all
objects imported this way starts with ``i`` to minimize collisions.

``ipipe`` supports "pipeline expressions", which is something resembling Unix
pipes. An example is::

    >>> ienv | isort("key.lower()")

This gives a listing of all environment variables sorted by name.


There are three types of objects in a pipeline expression:

* ``Table``s: These objects produce items. Examples are ``ils`` (listing the
  current directory, ``ienv`` (listing environment variables), ``ipwd`` (listing
  user accounts) and ``igrp`` (listing user groups). A ``Table`` must be the
  first object in a pipe expression.

* ``Pipe``s: These objects sit in the middle of a pipe expression. They
  transform the input in some way (e.g. filtering or sorting it). Examples are:
  ``ifilter`` (which filters the input pipe), ``isort`` (which sorts the input
  pipe) and ``ieval`` (which evaluates a function or expression for each object
  in the input pipe).

* ``Display``s: These objects can be put as the last object in a pipeline
  expression. There are responsible for displaying the result of the pipeline
  expression. If a pipeline expression doesn't end in a display object a default
  display objects will be used. One example is ``ibrowse`` which is a ``curses``
  based browser.


Adding support for pipeline expressions to your own objects can be done through
three extensions points (all of them optional):

* An object that will be displayed as a row by a ``Display`` object should
  implement the method ``__xattrs__(self, mode)`` method or register an
  implementation of the generic function ``xattrs``. For more info see ``xattrs``.

* When an object ``foo`` is displayed by a ``Display`` object, the generic
  function ``xrepr`` is used.

* Objects that can be iterated by ``Pipe``s must iterable. For special cases,
  where iteration for display is different than the normal iteration a special
  implementation can be registered with the generic function ``xiter``. This
  makes it possible to use dictionaries and modules in pipeline expressions,
  for example::

      >>> import sys
      >>> sys | ifilter("isinstance(value, int)") | idump
      key        |value
      api_version|      1012
      dllhandle  | 503316480
      hexversion |  33817328
      maxint     |2147483647
      maxunicode |     65535
      >>> sys.modules | ifilter("_.value is not None") | isort("_.key.lower()")
      ...

  Note: The expression strings passed to ``ifilter()`` and ``isort()`` can
  refer to the object to be filtered or sorted via the variable ``_`` and to any
  of the attributes of the object, i.e.::

      >>> sys.modules | ifilter("_.value is not None") | isort("_.key.lower()")

  does the same as::

      >>> sys.modules | ifilter("value is not None") | isort("key.lower()")

  In addition to expression strings, it's possible to pass callables (taking
  the object as an argument) to ``ifilter()``, ``isort()`` and ``ieval()``::

      >>> sys | ifilter(lambda _:isinstance(_.value, int))       ...     | ieval(lambda _: (_.key, hex(_.value))) | idump
      0          |1
      api_version|0x3f4
      dllhandle  |0x1e000000
      hexversion |0x20402f0
      maxint     |0x7fffffff
      maxunicode |0xffff
Nc            sW   t  |  ƒ } ˆ  t j	 o | i ‡  d †  ƒ n | i ƒ  | o | i ƒ  n | Sd  S(   Nc            s   t  ˆ  |  ƒ ˆ  | ƒ ƒ S(   N(   s   cmps   keys   i1s   i2(   s   i1s   i2(   s   key(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   <lambda>l   s    (   s   lists   iterators   itemss   keys   Nones   sorts   reverse(   s   iterators   keys   reverses   items(    (   s   keysI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   sortedi   s    
(   s   simplegeneric(   s   genutilss   generics(   s   ipapis   ifiles   ilss   iglobs   iwalks	   ipwdentrys   ipwds	   igrpentrys   igrps   icsvs   ixs   ichains   isorts   ifilters   ievals   ienums   ienvs   ihists   ialiass   icaps   idumps   ilesss   AttrNamespacec           B   s    t  Z d  Z d „  Z d „  Z RS(   s…   
    Helper class that is used for providing a namespace for evaluating
    expressions containing attribute names of an object.
    c         C   s   | |  _  d  S(   N(   s   wrappeds   self(   s   selfs   wrapped(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__™   s    c         C   sR   | d j o |  i Sn y t |  i | ƒ SWn t j
 o t | ƒ ‚ n Xd  S(   Ns   _(   s   names   selfs   wrappeds   getattrs   AttributeErrors   KeyError(   s   selfs   name(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __getitem__œ   s    (   s   __name__s
   __module__s   __doc__s   __init__s   __getitem__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   AttrNamespace”   s    	s   _c         C   s‚   t  |  t ƒ o t |  d d ƒ } n |  } h  } x9 | i D]. } y | | | | <Wq< t	 j
 o q< Xq< Wt
 | | | ƒ Sd S(   s™  
        eval(source[, globals[, locals]]) -> value

        Evaluate the source in the context of globals and locals.
        The source may be a string representing a Python expression
        or a code object as returned by compile().
        The globals must be a dictionary and locals can be any mappping.

        This function is a workaround for the shortcomings of
        Python 2.3's eval.
        s   _evals   evalN(   s
   isinstances
   codestrings
   basestrings   compiles   codes	   newlocalss   co_namess   names   _localss   KeyErrors	   real_evals   _globals(   s
   codestrings   _globalss   _localss   codes   names	   newlocals(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   eval­   s     
 	c         C   s×   | } | d j o/ xœ |  D]  } | o | Sn | d 8} q Wnq | } t ƒ  } x< |  D]4 } | i | ƒ t | ƒ | j o | i ƒ  qY qY Wt | ƒ | j o | i ƒ  Sn | t
 j o t | ƒ ‚ n | Sd S(   sÊ  
    Return the ``index``th item from the iterator ``iterator``.
    ``index`` must be an integer (negative integers are relative to the
    end (i.e. the last items produced by the iterator)).

    If ``default`` is given, this will be the default value when
    the iterator doesn't contain an item at this position. Otherwise an
    ``IndexError`` will be raised.

    Note that using this function will partially or totally exhaust the
    iterator.
    i    i   N(   s   indexs   is   iterators   items   deques   caches   appends   lens   poplefts   defaults   noitems
   IndexError(   s   iterators   indexs   defaults   items   caches   i(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   itemÊ   s(      	 c         C   sU   |  t j o@ t t j	 o( t i ƒ  } | t j	 o | i SqB n t ƒ  Sn |  Sd S(   s®   
    Return the global namespace that is used for expression strings in
    ``ifilter`` and others. This is ``g`` or (if ``g`` is ``None``) IPython's
    user namespace.
    N(   s   gs   Nones   ipapis   gets   apis   user_nss   globals(   s   gs   api(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   getglobalsì   s     s
   Descriptorc           B   sq   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z RS(   sS   
    A ``Descriptor`` object is used for describing the attributes of objects.
    c         C   s!   t  |  i ƒ t  |  i ƒ  ƒ ASd  S(   N(   s   hashs   selfs	   __class__s   key(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __hash__ÿ   s    c         C   s-   |  i | i j o |  i ƒ  | i ƒ  j Sd  S(   N(   s   selfs	   __class__s   others   key(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __eq__  s    c         C   s-   |  i | i j	 p |  i ƒ  | i ƒ  j Sd  S(   N(   s   selfs	   __class__s   others   key(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ne__  s    c         C   s   d  S(   N(    (   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   key  s    c         C   s/   |  i ƒ  } | t j o d Sn t | ƒ Sd S(   sy   
        Return the name of this attribute for display by a ``Display`` object
        (e.g. as a column title).
        s   _N(   s   selfs   keys   Nones   str(   s   selfs   key(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   name  s
     c         C   s   d S(   sj   
        Return the type of this attribute (i.e. something like "attribute" or
        "method").
        N(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtype  s    c         C   s   d S(   sP   
        Return the type of this attribute value of the object ``obj``.
        N(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetype  s    c         C   s   d S(   sK   
        Return the value of this attribute of the object ``obj``.
        N(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   value   s    c         C   s   d S(   s>   
        Return the documentation for this attribute.
        N(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   doc%  s    c         C   sD   |  i | ƒ } | t j	 o  | i ƒ  i ƒ  d i ƒ  } n | Sd S(   si   
        Return a short documentation for this attribute (defaulting to the
        first line).
        i    N(   s   selfs   docs   objs   Nones   strips
   splitlines(   s   selfs   objs   doc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   shortdoc*  s
      c         C   s   t  |  i | ƒ ƒ Sd S(   sN   
        Return an iterator for this attribute of the object ``obj``.
        N(   s   xiters   selfs   values   obj(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   iter4  s     (   s   __name__s
   __module__s   __doc__s   __hash__s   __eq__s   __ne__s   keys   names   attrtypes	   valuetypes   values   docs   shortdocs   iter(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   Descriptorû   s    					
					
s   SelfDescriptorc           B   s;   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s;   
    A ``SelfDescriptor`` describes the object itself.
    c         C   s   t  Sd  S(   N(   s   None(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   key?  s    c         C   s   d Sd  S(   Ns   self(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtypeB  s    c         C   s   t  | ƒ Sd  S(   N(   s   types   obj(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetypeE  s    c         C   s   | Sd  S(   N(   s   obj(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   valueH  s    c         C   s   d Sd  S(   Ns   Self(    (   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__K  s    (   s   __name__s
   __module__s   __doc__s   keys   attrtypes	   valuetypes   values   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   SelfDescriptor;  s    				s   AttributeDescriptorc           B   s\   t  Z d  Z d d f Z e d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   sO   
    An ``AttributeDescriptor`` describes a simple attribute of an object.
    s   _names   _docc         C   s   | |  _ | |  _ d  S(   N(   s   names   selfs   _names   docs   _doc(   s   selfs   names   doc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__W  s    	c         C   s   |  i Sd  S(   N(   s   selfs   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   key[  s    c         C   s   |  i Sd  S(   N(   s   selfs   _doc(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   doc^  s    c         C   s   d Sd  S(   Ns   attr(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtypea  s    c         C   s   t  t | |  i ƒ ƒ Sd  S(   N(   s   types   getattrs   objs   selfs   _name(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetyped  s    c         C   s   t  | |  i ƒ Sd  S(   N(   s   getattrs   objs   selfs   _name(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   valueg  s    c         C   s7   |  i t j o d |  i Sn d |  i |  i f Sd  S(   Ns   Attribute(%r)s   Attribute(%r, %r)(   s   selfs   _docs   Nones   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__j  s    (   s   __name__s
   __module__s   __doc__s	   __slots__s   Nones   __init__s   keys   docs   attrtypes	   valuetypes   values   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   AttributeDescriptorQ  s    					s   IndexDescriptorc           B   sM   t  Z d  Z d f Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   so   
    An ``IndexDescriptor`` describes an "attribute" of an object that is fetched
    via ``__getitem__``.
    s   _indexc         C   s   | |  _ d  S(   N(   s   indexs   selfs   _index(   s   selfs   index(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__x  s    c         C   s   |  i Sd  S(   N(   s   selfs   _index(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   key{  s    c         C   s   d Sd  S(   Ns   item(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtype~  s    c         C   s   t  | |  i ƒ Sd  S(   N(   s   types   objs   selfs   _index(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetype  s    c         C   s   | |  i Sd  S(   N(   s   objs   selfs   _index(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   value„  s    c         C   s   d |  i Sd  S(   Ns	   Index(%r)(   s   selfs   _index(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__‡  s    (
   s   __name__s
   __module__s   __doc__s	   __slots__s   __init__s   keys   attrtypes	   valuetypes   values   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   IndexDescriptorq  s    						s   MethodDescriptorc           B   s\   t  Z d  Z d d f Z e d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   sœ   
    A ``MethodDescriptor`` describes a method of an object that can be called
    without argument. Note that this method shouldn't change the object.
    s   _names   _docc         C   s   | |  _ | |  _ d  S(   N(   s   names   selfs   _names   docs   _doc(   s   selfs   names   doc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__’  s    	c         C   s   |  i Sd  S(   N(   s   selfs   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   key–  s    c         C   s2   |  i t j o t | |  i ƒ i Sn |  i Sd  S(   N(   s   selfs   _docs   Nones   getattrs   objs   _names   __doc__(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   doc™  s    c         C   s   d Sd  S(   Ns   method(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtypež  s    c         C   s   t  |  i | ƒ ƒ Sd  S(   N(   s   types   selfs   values   obj(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetype¡  s    c         C   s   t  | |  i ƒ ƒ  Sd  S(   N(   s   getattrs   objs   selfs   _name(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   value¤  s    c         C   s7   |  i t j o d |  i Sn d |  i |  i f Sd  S(   Ns
   Method(%r)s   Method(%r, %r)(   s   selfs   _docs   Nones   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__§  s    (   s   __name__s
   __module__s   __doc__s	   __slots__s   Nones   __init__s   keys   docs   attrtypes	   valuetypes   values   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   MethodDescriptor‹  s    					s   IterAttributeDescriptorc           B   se   t  Z d  Z d d f Z e d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z RS(   s®   
    An ``IterAttributeDescriptor`` works like an ``AttributeDescriptor`` but
    doesn't return an attribute values (because this value might be e.g. a large
    list).
    s   _names   _docc         C   s   | |  _ | |  _ d  S(   N(   s   names   selfs   _names   docs   _doc(   s   selfs   names   doc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__¶  s    	c         C   s   |  i Sd  S(   N(   s   selfs   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   keyº  s    c         C   s   |  i Sd  S(   N(   s   selfs   _doc(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   doc½  s    c         C   s   d Sd  S(   Ns   iter(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtypeÀ  s    c         C   s   t  Sd  S(   N(   s   noitem(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetypeÃ  s    c         C   s   t  Sd  S(   N(   s   noitem(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   valueÆ  s    c         C   s   t  t | |  i ƒ ƒ Sd  S(   N(   s   xiters   getattrs   objs   selfs   _name(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   iterÉ  s    c         C   s7   |  i t j o d |  i Sn d |  i |  i f Sd  S(   Ns   IterAttribute(%r)s   IterAttribute(%r, %r)(   s   selfs   _docs   Nones   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__Ì  s    (   s   __name__s
   __module__s   __doc__s	   __slots__s   Nones   __init__s   keys   docs   attrtypes	   valuetypes   values   iters   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   IterAttributeDescriptor®  s    						s   IterMethodDescriptorc           B   se   t  Z d  Z d d f Z e d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z RS(   s¤   
    An ``IterMethodDescriptor`` works like an ``MethodDescriptor`` but doesn't
    return an attribute values (because this value might be e.g. a large list).
    s   _names   _docc         C   s   | |  _ | |  _ d  S(   N(   s   names   selfs   _names   docs   _doc(   s   selfs   names   doc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__Ú  s    	c         C   s   |  i Sd  S(   N(   s   selfs   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   keyÞ  s    c         C   s2   |  i t j o t | |  i ƒ i Sn |  i Sd  S(   N(   s   selfs   _docs   Nones   getattrs   objs   _names   __doc__(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   docá  s    c         C   s   d Sd  S(   Ns
   itermethod(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtypeæ  s    c         C   s   t  Sd  S(   N(   s   noitem(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetypeé  s    c         C   s   t  Sd  S(   N(   s   noitem(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   valueì  s    c         C   s   t  t | |  i ƒ ƒ  ƒ Sd  S(   N(   s   xiters   getattrs   objs   selfs   _name(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   iterï  s    c         C   s7   |  i t j o d |  i Sn d |  i |  i f Sd  S(   Ns   IterMethod(%r)s   IterMethod(%r, %r)(   s   selfs   _docs   Nones   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__ò  s    (   s   __name__s
   __module__s   __doc__s	   __slots__s   Nones   __init__s   keys   docs   attrtypes	   valuetypes   values   iters   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   IterMethodDescriptorÓ  s    						s   FunctionDescriptorc           B   sk   t  Z d  Z d d d f Z e e d „ Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 d
 „  Z d „  Z RS(   s¢   
    A ``FunctionDescriptor`` turns a function into a descriptor. The function
    will be called with the object to get the type and value of the attribute.
    s	   _functions   _names   _docc         C   s   | |  _ | |  _ | |  _ d  S(   N(   s   functions   selfs	   _functions   names   _names   docs   _doc(   s   selfs   functions   names   doc(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__   s    		c         C   s   |  i Sd  S(   N(   s   selfs	   _function(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   key  s    c         C   s8   |  i t j	 o |  i Sn t |  i d |  i i ƒ Sd  S(   Ns	   __xname__(   s   selfs   _names   Nones   getattrs	   _functions   __name__(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   name  s    c         C   s)   |  i t j o |  i i Sn |  i Sd  S(   N(   s   selfs   _docs   Nones	   _functions   __doc__(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   doc  s    c         C   s   d Sd  S(   Ns   function(    (   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtype  s    c         C   s   t  |  i | ƒ ƒ Sd  S(   N(   s   types   selfs	   _functions   obj(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetype  s    c         C   s   |  i | ƒ Sd  S(   N(   s   selfs	   _functions   obj(   s   selfs   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   value  s    c         C   s7   |  i t j o d |  i Sn d |  i |  i f Sd  S(   Ns   Function(%r)s   Function(%r, %r)(   s   selfs   _docs   Nones   _name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__  s    (   s   __name__s
   __module__s   __doc__s	   __slots__s   Nones   __init__s   keys   names   docs   attrtypes	   valuetypes   values   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   FunctionDescriptorù  s    						s   Tablec           B   sQ   t  Z d  Z d e f d „  ƒ  YZ d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   s)  
    A ``Table`` is an object that produces items (just like a normal Python
    iterator/generator does) and can be used as the first object in a pipeline
    expression. The displayhook will open the default browser for such an object
    (instead of simply printing the ``repr()`` result).
    s   __metaclass__c           B   s5   t  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s   t  |  ƒ  ƒ Sd  S(   N(   s   iters   self(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__.  s    c         C   s   |  ƒ  | BSd  S(   N(   s   selfs   other(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __or__1  s    c         C   s   |  ƒ  | Sd  S(   N(   s   selfs   other(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __add__4  s    c         C   s   | |  ƒ  Sd  S(   N(   s   others   self(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __radd__7  s    c         C   s   |  ƒ  | Sd  S(   N(   s   selfs   index(   s   selfs   index(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __getitem__:  s    (   s   __name__s
   __module__s   __iter__s   __or__s   __add__s   __radd__s   __getitem__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __metaclass__-  s
   				c         C   s   t  |  | ƒ Sd  S(   N(   s   items   selfs   index(   s   selfs   index(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __getitem__=  s    c         C   s.   x# |  D] } | | j o t Sq q Wt Sd  S(   N(   s   selfs   haveitems   items   Trues   False(   s   selfs   items   haveitem(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __contains__@  s
     c         C   sv   t  | t ƒ o t | t t f ƒ o | ƒ  } n3 t  | t ƒ o t  | t ƒ o t | ƒ } n | i |  ƒ Sd  S(   N(	   s
   isinstances   others   types
   issubclasss   Tables   Displays   ievals   __ror__s   self(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __or__F  s
    &"c         C   s>   t  | t ƒ o t | t ƒ o | ƒ  } n t |  | ƒ Sd  S(   N(   s
   isinstances   others   types
   issubclasss   Tables   ichains   self(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __add__P  s     c         C   s>   t  | t ƒ o t | t ƒ o | ƒ  } n t | |  ƒ Sd  S(   N(   s
   isinstances   others   types
   issubclasss   Tables   ichains   self(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __radd__V  s     (
   s   __name__s
   __module__s   __doc__s   types   __metaclass__s   __getitem__s   __contains__s   __or__s   __add__s   __radd__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   Table"  s    			
	s   Pipec           B   s0   t  Z d  Z d e i f d „  ƒ  YZ d „  Z RS(   s  
    A ``Pipe`` is an object that can be used in a pipeline expression. It
    processes the objects it gets from its input ``Table``/``Pipe``. Note that
    a ``Pipe`` object can't be used as the first object in a pipeline
    expression, as it doesn't produces items itself.
    s   __metaclass__c           B   s   t  Z d „  Z RS(   Nc         C   s   | |  ƒ  BSd  S(   N(   s   inputs   self(   s   selfs   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ror__e  s    (   s   __name__s
   __module__s   __ror__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __metaclass__d  s   c         C   s>   t  | t ƒ o t | t ƒ o | ƒ  } n | |  _ |  Sd  S(   N(   s
   isinstances   inputs   types
   issubclasss   Tables   self(   s   selfs   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ror__h  s     	(   s   __name__s
   __module__s   __doc__s   Tables   __metaclass__s   __ror__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   Pipe]  s    s   defaultc         c   s   y |  i } Wn& t j
 o t i t |  ƒ f Vne Xy x | | ƒ D]
 } | VqF WWnA t	 t
 f j
 o
 ‚  n' t j
 o t i t |  ƒ f Vn Xd S(   s§  
    Generic function that adds color output and different display modes to ``repr``.

    The result of an ``xrepr`` call is iterable and consists of ``(style, string)``
    tuples. The ``style`` in this tuple must be a ``Style`` object from the
    ``astring`` module. To reconfigure the output the first yielded tuple can be
    a ``(aligment, full)`` tuple instead of a ``(style, string)`` tuple.
    ``alignment``  can be -1 for left aligned, 0 for centered and 1 for right
    aligned (the default is left alignment). ``full`` is a boolean that specifies
    whether the complete output must be displayed or the ``Display`` object is
    allowed to stop output after enough text has been produced (e.g. a syntax
    highlighted text line would use ``True``, but for a large data structure
    (i.e. a nested list, tuple or dictionary) ``False`` would be used).
    The default is full output.

    There are four different possible values for ``mode`` depending on where
    the ``Display`` object will display ``item``:

    ``"header"``
        ``item`` will be displayed in a header line (this is used by ``ibrowse``).

    ``"footer"``
        ``item`` will be displayed in a footer line (this is used by ``ibrowse``).

    ``"cell"``
        ``item`` will be displayed in a table cell/list.

    ``"default"``
        default mode. If an ``xrepr`` implementation recursively outputs objects,
        ``"default"`` must be passed in the recursive calls to ``xrepr``.

    If no implementation is registered for ``item``, ``xrepr`` will try the
    ``__xrepr__`` method on ``item``. If ``item`` doesn't have an ``__xrepr__``
    method it falls back to ``repr``/``__repr__`` for all modes.
    N(   s   items	   __xrepr__s   funcs   AttributeErrors   astyles   style_defaults   reprs   modes   xs   KeyboardInterrupts
   SystemExits	   Exception(   s   items   modes   funcs   x(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xreprp  s    #  c         c   s   t  i t |  ƒ f Vd  S(   N(   s   astyles   style_type_nones   reprs   self(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   xrepr_none£  s    c         c   s   d t  f Vt i d f Vd  S(   Ni   s   <?>(   s   Trues   astyles   style_nodata(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_noitem¨  s    
c         c   s   t  i t |  ƒ f Vd  S(   N(   s   astyles   style_type_bools   reprs   self(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   xrepr_bool®  s    c         c   sK   | d j o' t i t |  i t ƒ ƒ d d !f Vn t i t |  ƒ f Vd  S(   Ns   celli   iÿÿÿÿ(   s   modes   astyles   style_defaults   reprs   selfs
   expandtabss   tab(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   xrepr_str³  s    'c         c   sK   | d j o' t i t |  i t ƒ ƒ d d !f Vn t i t |  ƒ f Vd  S(   Ns   celli   iÿÿÿÿ(   s   modes   astyles   style_defaults   reprs   selfs
   expandtabss   tab(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_unicode»  s    'c         c   s!   d t  f Vt i t |  ƒ f Vd  S(   Ni   (   s   Trues   astyles   style_type_numbers   reprs   self(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_numberÃ  s    
c         c   s   t  i t |  ƒ f Vd  S(   N(   s   astyles   style_type_numbers   reprs   self(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_complexË  s    c      	   c   sc   | d j o? t i d |  i |  i |  i |  i |  i |  i	 |  i
 f f Vn t i t |  ƒ f Vd  S(   Ns   cells"   %04d-%02d-%02d %02d:%02d:%02d.%06d(   s   modes   astyles   style_type_datetimes   selfs   years   months   days   hours   minutes   seconds   microseconds   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_datetimeÐ  s    ?c         c   sK   | d j o' t i d |  i |  i |  i f f Vn t i t |  ƒ f Vd  S(   Ns   cells   %04d-%02d-%02d(   s   modes   astyles   style_type_datetimes   selfs   years   months   days   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   xrepr_dateÞ  s    'c         c   sQ   | d j o- t i d |  i |  i |  i |  i f f Vn t i t |  ƒ f Vd  S(   Ns   cells   %02d:%02d:%02d.%06d(	   s   modes   astyles   style_type_datetimes   selfs   hours   minutes   seconds   microseconds   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   xrepr_timeç  s    -c         c   s   t  i t |  ƒ f Vd  S(   N(   s   astyles   style_type_datetimes   reprs   self(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_timedeltañ  s    c         c   sE   |  i d j o t i |  i f Vn t i d |  i |  i f f Vd  S(   Ns   __builtin__s   %s.%s(   s   selfs
   __module__s   astyles   style_type_types   __name__(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   xrepr_typeö  s    c         c   s…   |  i i d j o |  i i } n d |  i i |  i i f } | d j p
 | d j o t i d | |  f f Vn t i | f Vd  S(   Ns
   exceptionss   %s.%ss   headers   footers   %s: %s(   s   selfs	   __class__s
   __module__s   __name__s	   classnames   modes   astyles   style_error(   s   selfs   modes	   classname(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_exceptionþ  s    c         c   s+  | d j p
 | d j oi |  i i d j o |  i i } n d |  i i |  i i f } t i d | t |  ƒ t	 |  ƒ f f Vn¥ d t
 f Vt |  t ƒ o t i d f Vd } n t i d	 f Vd
 } xP t |  ƒ D]B \ } } | o t i d f Vn x t | d ƒ D]
 } | VqWqÔ Wt i | f Vd  S(   Ns   headers   footers   __builtin__s   %s.%ss!   <%s object with %d items at 0x%x>iÿÿÿÿs   [s   ]s   (s   )s   , s   default(   s   modes   selfs	   __class__s
   __module__s   __name__s	   classnames   astyles   style_defaults   lens   ids   Falses
   isinstances   lists   ends	   enumerates   is   subselfs   xreprs   part(   s   selfs   modes   subselfs   is	   classnames   parts   end(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_listtuple  s&    *

  c         c   sb  | d j p
 | d j oi |  i i d j o |  i i } n d |  i i |  i i f } t i d | t |  ƒ t	 |  ƒ f f VnÜ d t
 f Vt |  t ƒ o t i d f Vd } n t i d	 f Vd
 } x‡ t |  i ƒ  ƒ D]s \ } \ } } | o t i d f Vn x t | d ƒ D]
 } | VqWt i d f Vx t | d ƒ D]
 } | Vq?WqÚ Wt i | f Vd  S(   Ns   headers   footers   __builtin__s   %s.%ss!   <%s object with %d items at 0x%x>iÿÿÿÿs   {s   }s   dictproxy((s   })s   , s   defaults   : (   s   modes   selfs	   __class__s
   __module__s   __name__s	   classnames   astyles   style_defaults   lens   ids   Falses
   isinstances   dicts   ends	   enumerates	   iteritemss   is   keys   values   xreprs   part(   s   selfs   modes   values   is	   classnames   parts   keys   end(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   xrepr_dict'  s.    *

   c         C   s  |  t j o t Snï t |  t ƒ o |  Sn× t |  t ƒ ow |  i d ƒ o7 |  i d ƒ o t |  d d !ƒ Sq° t	 |  d  ƒ Sq|  i d ƒ o t
 |  d ƒ Sqt |  ƒ SnP t |  t t f ƒ o t |  ƒ Sn, t |  ƒ o t |  ƒ Sn t d |  ƒ ‚ d S(   s®  
    Convert an attribute descriptor string to a real descriptor object.

    If attr already is a descriptor object return if unmodified. A
    ``SelfDescriptor`` will be returned if ``attr`` is ``None``. ``"foo"``
    returns an ``AttributeDescriptor`` for the attribute named ``"foo"``.
    ``"foo()"`` returns a ``MethodDescriptor`` for the method named ``"foo"``.
    ``"-foo"`` will return an ``IterAttributeDescriptor`` for the attribute
    named ``"foo"`` and ``"-foo()"`` will return an ``IterMethodDescriptor``
    for the method named ``"foo"``. Furthermore integer will return the appropriate
    ``IndexDescriptor`` and callables will return a ``FunctionDescriptor``.
    s   ()s   -i   iþÿÿÿs   can't handle descriptor %rN(   s   attrs   Nones   selfdescriptors
   isinstances
   Descriptors   strs   endswiths
   startswiths   IterMethodDescriptors   MethodDescriptors   IterAttributeDescriptors   AttributeDescriptors   ints   longs   IndexDescriptors   callables   FunctionDescriptors	   TypeError(   s   attr(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   upgradexattrF  s$     c         c   s~   y |  i } WnI t j
 o= | d j o% x& t |  ƒ D] } t | ƒ Vq8 Wqz t Vn# Xx | | ƒ D] } t
 | ƒ Vqf Wd S(   s¶  
    Generic function that returns an iterable of attribute descriptors
    to be used for displaying the attributes ob the object ``item`` in display
    mode ``mode``.

    There are two possible modes:

    ``"detail"``
        The ``Display`` object wants to display a detailed list of the object
        attributes.

    ``"default"``
        The ``Display`` object wants to display the object in a list view.

    If no implementation is registered for the object ``item`` ``xattrs`` falls
    back to trying the ``__xattrs__`` method of the object. If this doesn't
    exist either, ``dir(item)`` is used for ``"detail"`` mode and ``(None,)``
    for ``"default"`` mode.

    The implementation must yield attribute descriptors (see the class
    ``Descriptor`` for more info). The ``__xattrs__`` method may also return
    attribute descriptor strings (and ``None``) which will be converted to real
    descriptors by ``upgradexattr()``.
    s   detailN(   s   items
   __xattrs__s   funcs   AttributeErrors   modes   dirs   attrnames   AttributeDescriptors   selfdescriptors   attrs   upgradexattr(   s   items   modes   attrs   attrnames   func(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xattrsj  s      	 c         C   s2   | d j o t d ƒ t d ƒ f Sn t f Sd  S(   Ns   details   reals   imag(   s   modes   AttributeDescriptors   selfdescriptor(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xattrs_complex‘  s    c         C   sT   y |  i i } Wn t t f j
 o t Sn X| t i j p | t i	 i j Sd  S(   N(
   s   items	   __class__s   __iter__s   itermeths   AttributeErrors	   TypeErrors   Falses   dicts   typess   DictProxyType(   s   items   itermeth(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   _isdict˜  s
    	c         C   sK   t  |  t ƒ o t Sn y |  i i } Wn t j
 o t Sn Xt Sd  S(   N(	   s
   isinstances   items
   basestrings   Falses	   __class__s   __iter__s   itermeths   AttributeErrors   True(   s   items   itermeth(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   _isstr   s    	c         C   sõ   y |  i } WnÔ t j
 oÈ t |  ƒ o d „  } | |  ƒ Sn” t |  t i ƒ o d „  } | |  ƒ Snj t	 |  ƒ o\ |  o t
 d ƒ ‚ n |  i ƒ  } t | ƒ d j o d „  } | |  ƒ SqÕ t | ƒ Sn t |  ƒ Sn Xt | ƒ  ƒ Sd S(   s£   
    Generic function that implements iteration for pipeline expression. If no
    implementation is registered for ``item`` ``xiter`` falls back to ``iter``.
    c         c   sC   d d f } x0 |  i ƒ  D]" \ } } t | d | d | ƒVq Wd  S(   Ns   keys   value(   s   fieldss   items	   iteritemss   keys   values   Fields(   s   items   values   keys   fields(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   items³  s     c      	   c   sI   d d f } x6 t |  i ƒ D]% } t | d | d t |  | ƒ ƒVq Wd  S(   Ns   keys   value(   s   fieldss   sorteds   items   __dict__s   keys   Fieldss   getattr(   s   items   keys   fields(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   items¹  s     s   can't enter empty stringi   c         c   s   |  Vd  S(   N(   s   item(   s   item(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   iteroneÃ  s    N(   s   items	   __xiter__s   funcs   AttributeErrors   _isdicts   itemss
   isinstances   news   modules   _isstrs
   ValueErrors
   splitliness   liness   lens   iterones   iter(   s   items   liness   itemss   iterones   func(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xiterª  s(     			c           B   s5   t  Z d  Z d „  Z d „  Z d d „ Z d „  Z RS(   s.   
    Chains multiple ``Table``s into one.
    c         G   s   | |  _  d  S(   N(   s   iterss   self(   s   selfs   iters(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__Ó  s    c         C   s   t  i |  i Œ  Sd  S(   N(   s	   itertoolss   chains   selfs   iters(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__Ö  s    s   defaultc         c   sÍ   | d j p
 | d j oœ x¬ t |  i ƒ D]„ \ } } | o t i d f Vn t | t	 ƒ o t i d f Vn x t
 | | ƒ D]
 } | Vq Wt | t	 ƒ o t i d f Vq* q* Wn t i t |  ƒ f Vd  S(   Ns   headers   footers   +s   (s   )(   s   modes	   enumerates   selfs   iterss   is   items   astyles   style_defaults
   isinstances   Pipes   xreprs   parts   repr(   s   selfs   modes   is   items   part(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__Ù  s      c         C   sZ   d i  g  i } |  i D] } | t | ƒ ƒ q ~ ƒ } d |  i i	 |  i i
 | f Sd  S(   Ns   , s	   %s.%s(%s)(   s   joins   appends   _[1]s   selfs   iterss   its   reprs   argss	   __class__s
   __module__s   __name__(   s   selfs   _[1]s   argss   it(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__ç  s    9(   s   __name__s
   __module__s   __doc__s   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ichainÎ  s
    		c           B   s  t  Z d  Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z	 e e	 e e d ƒ Z
 d „  Z e e e e d ƒ Z d	 „  Z e e e e d
 ƒ Z d „  Z e e ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z d „  Z e e e e d ƒ Z  d „  Z! d „  Z" d „  Z# e$ i% d j o e d  d! d" d# f Z& n e d  d! d" d$ d% d# f Z& d& d' „ Z' RS((   s%   
    file (or directory) object.
    c         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats   st_mode(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getmodeò  s    s   Access modec         C   s&  t  i d f t  i d f t  i d f t  i d f t  i d f t  i d f t  i d f g } |  i
 ƒ  } | t j	 oK t g  i } | D]* \ } } | | i ƒ o | | ƒ q„ q„ ~ ƒ } n
 t ƒ  } |  i } | i g  i } | D]' \ } } | | ƒ o | | ƒ qä qä ~ ƒ d i | ƒ Sd  S(	   Ns   files   dirs   chardevs   blockdevs   fifos   symlinks   sockets   , (   s   stats   S_ISREGs   S_ISDIRs   S_ISCHRs   S_ISBLKs   S_ISFIFOs   S_ISLNKs   S_ISSOCKs   datas   selfs   lstats   Nones   sets   appends   _[1]s   funcs   texts   st_modes   typess   modes   ms   updates   join(   s   selfs   lstats   texts   ms   _[1]s   funcs   datas   types(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   gettypeö  s    Z	K		Es'   file type (file, directory, link, etc.)c      
   C   sÁ   |  i } t i d f t i d f t i d f t i d f t i d f t i	 d f t i
 d f t i d f t i d f g	 } d i g  i } | D]$ \ } } | | t | | @ƒ ƒ q ~ ƒ Sd  S(   Ns   -rs   -ws   -xs    (   s   selfs   modes   ms   stats   S_IRUSRs   S_IWUSRs   S_IXUSRs   S_IRGRPs   S_IWGRPs   S_IXGRPs   S_IROTHs   S_IWOTHs   S_IXOTHs   datas   joins   appends   _[1]s   bits   texts   bool(   s   selfs   texts   ms   _[1]s   bits   data(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   getmodestr
  s    	rs   Access mode as stringc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats	   st_blocks(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   getblocks  s    s   File size in blocksc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats
   st_blksize(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   getblksize  s    s   Filesystem block sizec         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats   st_dev(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getdev#  s    c         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats   st_nlink(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getnlink'  s    s   Number of linksc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats   st_uid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getuid+  s    s   User id of file ownerc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs   stats   st_gid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getgid/  s    s   Group id of file ownerc         C   sD   |  i ƒ  } y t i | i ƒ i SWn t j
 o | i Sn Xd  S(   N(   s   selfs   stats   pwds   getpwuids   st_uids   pw_names   KeyError(   s   selfs   stat(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getowner3  s
    s   Owner name (or id)c         C   sD   |  i ƒ  } y t i | i ƒ i SWn t j
 o | i Sn Xd  S(   N(   s   selfs   stats   grps   getgrgids   st_gids   gr_names   KeyError(   s   selfs   stat(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getgroup;  s
    s   Group name (or id)c         C   s   t  i  i |  i ƒ Sd  S(   N(   s   datetimes   utcfromtimestamps   selfs   atime(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getadateC  s    s   Access datec         C   s   t  i  i |  i ƒ Sd  S(   N(   s   datetimes   utcfromtimestamps   selfs   ctime(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getcdateG  s    s   Creation datec         C   s   t  i  i |  i ƒ Sd  S(   N(   s   datetimes   utcfromtimestamps   selfs   mtime(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getmdateK  s    s   Modification datec         C   s   t  i |  i ƒ  ƒ d Sd S(   s>   
        Return MIME type guessed from the extension.
        i    N(   s	   mimetypess
   guess_types   selfs   basename(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   mimetypeO  s     c         C   s   t  i |  i ƒ  ƒ d Sd S(   sI   
        Return guessed compression (like "compress" or "gzip").
        i   N(   s	   mimetypess
   guess_types   selfs   basename(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   encodingU  s     c         C   s   d t  i i |  ƒ Sd  S(   Ns	   ifile(%s)(   s   paths   _bases   __repr__s   self(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__[  s    s   win32s   types   sizes   modestrs   mdates   owners   groups   defaultc      "   C   s†   | d j on d d d d d d d d	 d
 d d d d d d d d d d d d d d d d d d d d d d  d! d" d# f" Sn |  i Sd  S($   Ns   details   names
   basename()s	   abspath()s
   realpath()s   types   modes   modestrs   stat()s   lstat()s   uids   gids   owners   groups   devs   nlinks   ctimes   mtimes   atimes   cdates   mdates   adates   sizes   blockss   blksizes   isdir()s   islink()s
   mimetype()s
   encoding()s
   -listdir()s   -dirs()s   -files()s   -walk()s   -walkdirs()s   -walkfiles()(   s   modes   selfs   defaultattrs(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__c  s    n%((   s   __name__s
   __module__s   __doc__s   getmodes   propertys   Nones   modes   gettypes   types
   getmodestrs   modestrs	   getblockss   blockss
   getblksizes   blksizes   getdevs   devs   getnlinks   nlinks   getuids   uids   getgids   gids   getowners   owners   getgroups   groups   getadates   adates   getcdates   cdates   getmdates   mdates   mimetypes   encodings   __repr__s   syss   platforms   defaultattrss
   __xattrs__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ifileí  sH    																	c         c   su   |  i ƒ  o6 |  t i i ƒ  VxP t |  i ƒ  ƒ D]
 } | Vq1 Wn/ |  i d ƒ } x | D]
 } | VqY W| i ƒ  d  S(   Ns   rb(   s   selfs   isdirs   oss   pardirs   abspaths   sorteds   listdirs   childs   opens   fs   lines   close(   s   selfs   fs   childs   line(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xiter_ifile  s      c         c   sþ   y3 |  i ƒ  o d } t i } n d } t i } Wn" t j
 o d } t i } n X| d d d f j o| t
 t i |  i ƒ  ƒ ƒ } | i d ƒ o | d d !} n | d	 d !} | d j o | | f Vqú | d
 | | f f Vn | t
 |  ƒ f Vd  S(   Ns   idirs   ifiles   cells   headers   footers   ui   iÿÿÿÿi   s   %s(%s)(   s   selfs   isdirs   names   astyles	   style_dirs   styles
   style_files   IOErrors   style_defaults   modes   reprs   paths   _bases   normpaths   abspaths
   startswith(   s   selfs   modes   styles   names   abspath(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xrepr_ifileœ  s$    c           B   sA   t  Z d  Z e i e e d „ Z d „  Z d d „ Z d „  Z	 RS(   s˜   
    List the current (or a specified) directory.

    Examples::

        >>> ils
        >>> ils("/usr/local/lib/python2.4")
        >>> ils("~")
    c         C   s+   t  i i | ƒ |  _ | |  _ | |  _ d  S(   N(   s   oss   paths
   expandusers   bases   selfs   dirss   files(   s   selfs   bases   dirss   files(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__À  s    	c         c   sš   t  |  i ƒ } | t i i ƒ  Vxs t | i ƒ  ƒ D]_ } |  i	 o+ |  i
 o | Vq’ | i ƒ  o | Vq’ q3 |  i
 o | i ƒ  o | Vq’ q3 q3 Wd  S(   N(   s   ifiles   selfs   bases   oss   pardirs   abspaths   sorteds   listdirs   childs   dirss   filess   isdir(   s   selfs   bases   child(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__Å  s     


s   defaultc         C   s   t  t |  i ƒ | ƒ Sd  S(   N(   s   xreprs   ifiles   selfs   bases   mode(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__Ó  s    c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   base(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__Ö  s    (
   s   __name__s
   __module__s   __doc__s   oss   curdirs   Trues   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ils¶  s
   	 	c           B   s5   t  Z d  Z d „  Z d „  Z d d „ Z d „  Z RS(   s›   
    List all files and directories matching a specified pattern.
    (See ``glob.glob()`` for more info.).

    Examples::

        >>> iglob("*.py")
    c         C   s   | |  _  d  S(   N(   s   globs   self(   s   selfs   glob(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__ä  s    c         c   s+   x$ t  i  |  i  ƒ D] } t | ƒ Vq Wd  S(   N(   s   globs   selfs   names   ifile(   s   selfs   name(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__ç  s     s   defaultc         c   sb   | d j p | d j p
 | d j o$ t i d |  i i |  i f f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   cells   %s(%r)(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   globs   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__ë  s    '$c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   glob(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__ò  s    (   s   __name__s
   __module__s   __doc__s   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   iglobÛ  s
    		c           B   sA   t  Z d  Z e i e e d „ Z d „  Z d d „ Z d „  Z	 RS(   s§   
    List all files and directories in a directory and it's subdirectory::

        >>> iwalk
        >>> iwalk("/usr/local/lib/python2.4")
        >>> iwalk("~")
    c         C   s+   t  i i | ƒ |  _ | |  _ | |  _ d  S(   N(   s   oss   paths
   expandusers   bases   selfs   dirss   files(   s   selfs   bases   dirss   files(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__ÿ  s    	c         c   s¦   xŸ t  i |  i ƒ D]‹ \ } } } |  i o4 x1 t | ƒ D] } t
 t  i i | | ƒ ƒ Vq9 Wn |  i o4 x1 t | ƒ D] } t
 t  i i | | ƒ ƒ Vqw Wq q Wd  S(   N(   s   oss   walks   selfs   bases   dirpaths   dirnamess	   filenamess   dirss   sorteds   names   ifiles   paths   joins   files(   s   selfs   names   dirnamess   dirpaths	   filenames(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__  s     
 !
 s   defaultc         c   sb   | d j p | d j p
 | d j o$ t i d |  i i |  i f f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   cells   %s(%r)(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   bases   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__  s    '$c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   base(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__  s    (
   s   __name__s
   __module__s   __doc__s   oss   curdirs   Trues   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   iwalk÷  s
    		c           B   s7  t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z e e e	 e	 d ƒ Z
 d „  Z e e e	 e	 d ƒ Z d	 „  Z e e e	 e	 d
 ƒ Z d „  Z e e e	 e	 d ƒ Z d „  Z e e e	 e	 d ƒ Z d „  Z e e e	 e	 d ƒ Z d „  Z e e e	 e	 d ƒ Z d „  Z e e e	 e	 d ƒ Z d d „ Z d „  Z RS(   sg   
    ``ipwdentry`` objects encapsulate entries in the Unix user account and
    password database.
    c         C   s   | |  _ t |  _ d  S(   N(   s   ids   selfs   _ids   Nones   _entry(   s   selfs   id(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__  s    	c         C   s'   |  i | i j o |  i | i j Sd  S(   N(   s   selfs	   __class__s   others   _id(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __eq__"  s    c         C   s'   |  i | i j	 p |  i | i j Sd  S(   N(   s   selfs	   __class__s   others   _id(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ne__%  s    c         C   s`   |  i t j oE t |  i t ƒ o t i |  i ƒ |  _ qU t i |  i ƒ |  _ n |  i Sd  S(   N(	   s   selfs   _entrys   Nones
   isinstances   _ids
   basestrings   pwds   getpwnams   getpwuid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   _getentry(  s
    c         C   s/   t  |  i t ƒ o |  i Sn |  i ƒ  i Sd  S(   N(   s
   isinstances   selfs   _ids
   basestrings	   _getentrys   pw_name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getname0  s    s	   User namec         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys	   pw_passwd(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   getpasswd7  s    s   Passwordc         C   s/   t  |  i t ƒ o |  i ƒ  i Sn |  i Sd  S(   N(   s
   isinstances   selfs   _ids
   basestrings	   _getentrys   pw_uid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getuid;  s    s   User idc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys   pw_gid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getgidB  s    s   Primary group idc         C   s   t  |  i ƒ Sd  S(   N(   s	   igrpentrys   selfs   gid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getgroupF  s    s   Groupc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys   pw_gecos(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getgecosJ  s    s!   Information (e.g. full user name)c         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys   pw_dir(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getdirN  s    s   $HOME directoryc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys   pw_shell(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getshellR  s    s   Login shells   defaultc         C   s   d d d d d d d f Sd  S(   Ns   names   passwds   uids   gids   gecoss   dirs   shell(    (   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__V  s    c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   _id(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__Y  s    (   s   __name__s
   __module__s   __doc__s   __init__s   __eq__s   __ne__s	   _getentrys   getnames   propertys   Nones   names	   getpasswds   passwds   getuids   uids   getgids   gids   getgroups   groups   getgecoss   gecoss   getdirs   dirs   getshells   shells
   __xattrs__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   ipwdentry  s.    												c           B   s#   t  Z d  Z d „  Z d d „ Z RS(   sz   
    List all entries in the Unix user account and password database.

    Example::

        >>> ipwd | isort("uid")
    c         c   s(   x! t  i ƒ  D] } t | i ƒ Vq Wd  S(   N(   s   pwds   getpwalls   entrys	   ipwdentrys   pw_name(   s   selfs   entry(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__f  s     s   defaultc         c   sY   | d j p | d j p
 | d j o t i d |  i i f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   cells   %s()(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__j  s    '(   s   __name__s
   __module__s   __doc__s   __iter__s	   __xrepr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ipwd^  s    	c           B   sÔ   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z e e e	 e	 d ƒ Z
 d „  Z e e e	 e	 d ƒ Z d	 „  Z e e e	 e	 d
 ƒ Z d „  Z e e e	 e	 d ƒ Z d d „ Z d d „ Z d „  Z d „  Z RS(   sO   
    ``igrpentry`` objects encapsulate entries in the Unix group database.
    c         C   s   | |  _ t |  _ d  S(   N(   s   ids   selfs   _ids   Nones   _entry(   s   selfs   id(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__u  s    	c         C   s'   |  i | i j o |  i | i j Sd  S(   N(   s   selfs	   __class__s   others   _id(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __eq__y  s    c         C   s'   |  i | i j	 p |  i | i j Sd  S(   N(   s   selfs	   __class__s   others   _id(   s   selfs   other(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ne__|  s    c         C   s`   |  i t j oE t |  i t ƒ o t i |  i ƒ |  _ qU t i |  i ƒ |  _ n |  i Sd  S(   N(	   s   selfs   _entrys   Nones
   isinstances   _ids
   basestrings   grps   getgrnams   getgrgid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   _getentry  s
    c         C   s/   t  |  i t ƒ o |  i Sn |  i ƒ  i Sd  S(   N(   s
   isinstances   selfs   _ids
   basestrings	   _getentrys   gr_name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getname‡  s    s
   Group namec         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys	   gr_passwd(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   getpasswdŽ  s    s   Passwordc         C   s/   t  |  i t ƒ o |  i ƒ  i Sn |  i Sd  S(   N(   s
   isinstances   selfs   _ids
   basestrings	   _getentrys   gr_gid(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getgid’  s    s   Group idc         C   s   |  i ƒ  i Sd  S(   N(   s   selfs	   _getentrys   gr_mem(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   getmem™  s    s   Memberss   defaultc         C   s   d d d d f Sd  S(   Ns   names   passwds   gids   mem(    (   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__  s    c         c   s¶   | d j p | d j p
 | d j ox t i d f Vy t i |  i f VWq² t j
 oD t |  i t ƒ o t i |  i	 f Vq› t i
 t |  i ƒ f Vq² Xn t i t |  ƒ f Vd  S(   Ns   headers   footers   cells   group (   s   modes   astyles   style_defaults   selfs   names   KeyErrors
   isinstances   _ids
   basestrings   name_ids   style_type_numbers   strs   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__   s    'c         c   s"   x |  i D] } t | ƒ Vq
 Wd  S(   N(   s   selfs   mems   members	   ipwdentry(   s   selfs   member(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__­  s    
 c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   _id(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__±  s    (   s   __name__s
   __module__s   __doc__s   __init__s   __eq__s   __ne__s	   _getentrys   getnames   propertys   Nones   names	   getpasswds   passwds   getgids   gids   getmems   mems
   __xattrs__s	   __xrepr__s   __iter__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   igrpentryq  s"    									c           B   s#   t  Z d  Z d „  Z d d „ Z RS(   sF   
    This ``Table`` lists all entries in the Unix group database.
    c         c   s(   x! t  i ƒ  D] } t | i ƒ Vq Wd  S(   N(   s   grps   getgralls   entrys	   igrpentrys   gr_name(   s   selfs   entry(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__º  s     s   defaultc         c   sL   | d j p
 | d j o t i d |  i i f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   %s()(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__¾  s    (   s   __name__s
   __module__s   __doc__s   __iter__s	   __xrepr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   igrp¶  s    	s   Fieldsc           B   s)   t  Z d „  Z d d „ Z d d „ Z RS(   Nc         K   sa   g  i  } | D] } | t | ƒ ƒ q ~ |  _ x* | i ƒ  D] \ } } t |  | | ƒ q= Wd  S(   N(   s   appends   _[1]s
   fieldnamess	   fieldnames   upgradexattrs   selfs   _Fields__fieldnamess   fieldss	   iteritemss   keys   values   setattr(   s   selfs
   fieldnamess   fieldss   _[1]s	   fieldnames   values   key(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__Æ  s    0 s   defaultc         C   s   |  i Sd  S(   N(   s   selfs   _Fields__fieldnames(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__Ë  s    c         c   st  d t  f V| d j p
 | d j o° t i |  i i f Vt i d f Vx| t |  i ƒ D]k \ } } | o t i d f Vn t i | i ƒ  f Vt i d f Vx$ t t |  | ƒ d ƒ D]
 } | Vq± WqT Wt i d f Vn | d	 j o| t i |  i i f Vt i d f VxH t |  i ƒ D]7 \ } } | o t i d f Vn t i | i ƒ  f VqWt i d f Vn t i t |  ƒ f Vd  S(
   Niÿÿÿÿs   headers   cells   (s   , s   =s   defaults   )s   footer(   s   Falses   modes   astyles   style_defaults   selfs	   __class__s   __name__s	   enumerates   _Fields__fieldnamess   is   fs   names   xreprs   getattrs   parts   repr(   s   selfs   modes   fs   is   part(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__Î  s0    
   (   s   __name__s
   __module__s   __init__s
   __xattrs__s	   __xrepr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   FieldsÅ  s   	s
   FieldTablec           B   s/   t  Z d „  Z d „  Z d d „ Z d „  Z RS(   Nc         G   s'   t  i |  ƒ t i |  ƒ | |  _ d  S(   N(   s   Tables   __init__s   selfs   lists   fields(   s   selfs   fields(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__è  s    c         K   s   |  i t |  i |  ƒ d  S(   N(   s   selfs   appends   Fieldss   fields(   s   selfs   fields(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   addí  s    s   defaultc         c   s±   d t  f V| d j p
 | d j ov t i |  i i f Vt i d f VxB t |  i ƒ D]1 \ } } | o t i d f Vn t i | f VqT Wt i d f Vn t i t |  ƒ f Vd  S(   Niÿÿÿÿs   headers   footers   (s   , s   )(   s   Falses   modes   astyles   style_defaults   selfs	   __class__s   __name__s	   enumerates   _FieldTable__fieldnamess   is   fs   repr(   s   selfs   modes   fs   i(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__ð  s    
 c         C   s?   d |  i i |  i i d i t t |  i ƒ ƒ t |  ƒ f Sd  S(   Ns%   <%s.%s object with fields=%r at 0x%x>s   , (	   s   selfs	   __class__s
   __module__s   __name__s   joins   maps   reprs   fieldss   id(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__ý  s    (   s   __name__s
   __module__s   __init__s   adds	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   FieldTableç  s   		s   Listc           B   s    t  Z d d „ Z d d „ Z RS(   Ns   defaultc         C   s   t  t |  ƒ ƒ Sd  S(   N(   s   xranges   lens   self(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__  s    c         c   sÙ   d t  f V| d j p$ | d j p | d j p
 | d j o„ t i |  i i f Vt i d f VxP t |  ƒ D]B \ } } | o t i d f Vn x t
 | d ƒ D]
 } | VqŸ Wqk Wt i d f Vn t i t |  ƒ f Vd  S(	   Niÿÿÿÿs   headers   cells   footers   defaults   (s   , s   )(   s   Falses   modes   astyles   style_defaults   selfs	   __class__s   __name__s	   enumerates   is   items   xreprs   parts   repr(   s   selfs   modes   is   items   part(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__  s    
4  (   s   __name__s
   __module__s
   __xattrs__s	   __xrepr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   List  s   c           B   s#   t  Z d  Z d „  Z d d „ Z RS(   sF   
    List environment variables.

    Example::

        >>> ienv
    c         c   sF   d d f } x3 t i i ƒ  D]" \ } } t | d | d | ƒVq Wd  S(   Ns   keys   value(   s   fieldss   oss   environs	   iteritemss   keys   values   Fields(   s   selfs   fieldss   values   key(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__  s     s   defaultc         c   sL   | d j p
 | d j o t i d |  i i f Vn t i t |  ƒ f Vd  S(   Ns   headers   cells   %s()(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__$  s    (   s   __name__s
   __module__s   __doc__s   __iter__s	   __xrepr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ienv  s    	c           B   s#   t  Z d  Z e d „ Z d „  Z RS(   sd   
    IPython input history

    Example::

        >>> ihist
        >>> ihist(True) (raw mode)
    c         C   s   | |  _  d  S(   N(   s   raws   self(   s   selfs   raw(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__4  s    c         c   sf   t  i ƒ  } |  i o( xI | i i D] } | i d ƒ Vq# Wn% x! | i i	 D] } | i d ƒ VqK Wd  S(   Ns   
(
   s   ipapis   gets   apis   selfs   raws   IPs   input_hist_raws   lines   rstrips
   input_hist(   s   selfs   apis   line(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__7  s    
  (   s   __name__s
   __module__s   __doc__s   Trues   __init__s   __iter__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ihist+  s    s   Aliasc           B   s#   t  Z d  Z d „  Z d d „ Z RS(   s"   
    Entry in the alias table
    c         C   s   | |  _  | |  _ | |  _ d  S(   N(   s   names   selfs   argss   command(   s   selfs   names   argss   command(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__E  s    		s   defaultc         C   s   d d d f Sd  S(   Ns   names   argss   command(    (   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__J  s    (   s   __name__s
   __module__s   __doc__s   __init__s
   __xattrs__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   AliasA  s    	c           B   s   t  Z d  Z d „  Z RS(   s?   
    IPython alias list

    Example::

        >>> ialias
    c         c   sI   t  i ƒ  } x6 | i i i ƒ  D]" \ } \ } } t	 | | | ƒ Vq Wd  S(   N(
   s   ipapis   gets   apis   IPs   alias_tables	   iteritemss   names   argss   commands   Alias(   s   selfs   names   argss   apis   command(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__V  s     (   s   __name__s
   __module__s   __doc__s   __iter__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ialiasN  s    c           B   s5   t  Z d  Z d „  Z d „  Z d d „ Z d „  Z RS(   s}   
    This ``Pipe`` turns the input (with must be a pipe outputting lines
    or an ``ifile``) into lines of CVS columns.
    c         K   s   | |  _  d S(   s   
        Create an ``icsv`` object. ``cvsargs`` will be passed through as
        keyword arguments to ``cvs.reader()``.
        N(   s   csvargss   self(   s   selfs   csvargs(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__b  s     c         c   s`   |  i } t | t ƒ o | i d ƒ } n t i | |  i  } x | D] } t	 | ƒ VqH Wd  S(   Ns   rb(
   s   selfs   inputs
   isinstances   ifiles   opens   csvs   readers   csvargss   lines   List(   s   selfs   readers   inputs   line(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__i  s    	 s   defaultc         c   s-  d t  f V| d j p
 | d j oò t |  d t ƒ } | t j	 o/ x t | | ƒ D]
 } | VqS Wt i	 d f Vn t i	 d |  i
 i f Vxy t |  i i ƒ  ƒ D]b \ } \ } } | o t i	 d f Vn t i	 | f Vt i	 d f Vx t | d	 ƒ D]
 } | Vqó WqŸ Wt i	 d
 f Vn t i	 t |  ƒ f Vd  S(   Niÿÿÿÿs   headers   footers   inputs    | s   %s(s   , s   =s   defaults   )(   s   Falses   modes   getattrs   selfs   Nones   inputs   xreprs   parts   astyles   style_defaults	   __class__s   __name__s	   enumerates   csvargss	   iteritemss   is   names   values   repr(   s   selfs   modes   names   is   values   parts   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__q  s(    
   c         C   sg   d i  g  i } |  i i ƒ  D] } | d | ƒ q ~ ƒ } d |  i i	 |  i i
 | t |  ƒ f Sd  S(   Ns   , s   %s=%rs   <%s.%s %s at 0x%x>(   s   joins   appends   _[1]s   selfs   csvargss	   iteritemss   items   argss	   __class__s
   __module__s   __name__s   id(   s   selfs   _[1]s   items   args(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__…  s    =(   s   __name__s
   __module__s   __doc__s   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   icsv]  s
    		c           B   s>   t  Z d  Z d „  Z d „  Z d „  Z d d „ Z d „  Z RS(   s©   
    Execute a system command and list its output as lines
    (similar to ``os.popen()``).

    Examples::

        >>> ix("ps x")
        >>> ix("find .") | ifile
    c         C   s   | |  _  t |  _ d  S(   N(   s   cmds   selfs   Nones   _pipeout(   s   selfs   cmd(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__•  s    	c         c   s`   t  i |  i ƒ \ } |  _ | i ƒ  x |  i D] } | i d ƒ Vq/ W|  i i ƒ  t	 |  _ d  S(   Ns   
(
   s   oss   popen4s   selfs   cmds   _pipeins   _pipeouts   closes   ls   rstrips   None(   s   selfs   _pipeins   l(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__™  s    

 c         C   s<   |  i t j	 o |  i i o |  i i ƒ  n t |  _ d  S(   N(   s   selfs   _pipeouts   Nones   closeds   close(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __del__¡  s    s   defaultc         c   sU   | d j p
 | d j o$ t i d |  i i |  i f f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   %s(%r)(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   cmds   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__¦  s    $c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   cmd(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__­  s    (   s   __name__s
   __module__s   __doc__s   __init__s   __iter__s   __del__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ix‹  s   	 			c           B   s;   t  Z d  Z e d d „ Z d „  Z d d „ Z d „  Z RS(   s1  
    Filter an input pipe. Only objects where an expression evaluates to true
    (and doesn't raise an exception) are listed.

    Examples::

        >>> ils | ifilter("_.isfile() and size>1000")
        >>> igrp | ifilter("len(mem)")
        >>> sys.modules | ifilter(lambda _:_.value is not None)
    s   raiseifallfailc         C   s   | |  _  | |  _ | |  _ d S(   s	  
        Create an ``ifilter`` object. ``expr`` can be a callable or a string
        containing an expression. ``globals`` will be used as the global
        namespace for calling string expressions (defaulting to IPython's
        user namespace). ``errors`` specifies how exception during evaluation
        of ``expr`` are handled:

        ``"drop"``
            drop all items that have errors;

        ``"keep"``
            keep all items that have errors;

        ``"keeperror"``
            keep the exception of all items that have errors;

        ``"raise"``
            raise the exception;

        ``"raiseifallfail"``
            raise the first exception if all items have errors; otherwise drop
            those with errors (this is the default).
        N(   s   exprs   selfs   globalss   errors(   s   selfs   exprs   globalss   errors(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__¾  s     		c      	   #   s  t  |  i ƒ o |  i } n4 t |  i ƒ ‰  t |  i d d ƒ ‰ ‡  ‡ d †  } d } t	 } xù t |  i ƒ D]è } y# | | ƒ o | Vn | d 7} Wql t t f j
 o
 ‚  ql t j
 o• } |  i d j o qT|  i d j o | VqT|  i d j o | VqT|  i d	 j o ‚  qT|  i d
 j o! | t	 j o t i
 ƒ  } qOqTql Xql W| o
 | t	 j	 o | d | d | d ‚ n d  S(   Ns   ipipe-expressions   evalc            s   t  ˆ ˆ  t |  ƒ ƒ Sd  S(   N(   s   evals   exprs   gs   AttrNamespaces   item(   s   item(   s   gs   expr(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   testà  s    i    i   s   drops   keeps	   keeperrors   raises   raiseifallfaili   (   s   callables   selfs   exprs   tests
   getglobalss   globalss   gs   compiles   oks   Nones   exc_infos   xiters   inputs   items   KeyboardInterrupts
   SystemExits	   Exceptions   excs   errorss   sys(   s   selfs   oks   excs   gs   exprs   items   tests   exc_info(    (   s   gs   exprsI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__Ú  s:     s   defaultc         c   sÈ   | d j p
 | d j o— t |  d t ƒ } | t j	 o/ x t | | ƒ D]
 } | VqI Wt i d f Vn t i d |  i	 i
 f Vx t |  i d ƒ D]
 } | Vq’ Wt i d f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   inputs    | s   %s(s   defaults   )(   s   modes   getattrs   selfs   Nones   inputs   xreprs   parts   astyles   style_defaults	   __class__s   __name__s   exprs   repr(   s   selfs   modes   parts   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__û  s      c         C   s-   d |  i i |  i i |  i t |  ƒ f Sd  S(   Ns   <%s.%s expr=%r at 0x%x>(   s   selfs	   __class__s
   __module__s   __name__s   exprs   id(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__	  s    (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ifilter²  s
   
 	!c           B   s;   t  Z d  Z e d d „ Z d „  Z d d „ Z d „  Z RS(   sŸ   
    Evaluate an expression for each object in the input pipe.

    Examples::

        >>> ils | ieval("_.abspath()")
        >>> sys.path | ieval(ifile)
    s   raiseifallfailc         C   s   | |  _  | |  _ | |  _ d S(   s½   
        Create an ``ieval`` object. ``expr`` can be a callable or a string
        containing an expression. For the meaning of ``globals`` and
        ``errors`` see ``ifilter``.
        N(   s   exprs   selfs   globalss   errors(   s   selfs   exprs   globalss   errors(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__  s     		c      	   #   sx  t  |  i ƒ o |  i } n4 t |  i ƒ ‰  t |  i d d ƒ ‰ ‡  ‡ d †  } d } t	 } xä t |  i ƒ D]Ó } y | | ƒ VWql t t f j
 o
 ‚  ql t j
 o• } |  i d j o q?|  i d j o | Vq?|  i d j o | Vq?|  i d j o ‚  q?|  i d	 j o! | t	 j o t i
 ƒ  } q:q?ql Xql W| o
 | t	 j	 o | d | d
 | d ‚ n d  S(   Ns   ipipe-expressions   evalc            s   t  ˆ ˆ  t |  ƒ ƒ Sd  S(   N(   s   evals   exprs   gs   AttrNamespaces   item(   s   item(   s   gs   expr(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   do)  s    i    s   drops   keeps	   keeperrors   raises   raiseifallfaili   i   (   s   callables   selfs   exprs   dos
   getglobalss   globalss   gs   compiles   oks   Nones   exc_infos   xiters   inputs   items   KeyboardInterrupts
   SystemExits	   Exceptions   excs   errorss   sys(   s   selfs   dos   oks   excs   gs   items   exprs   exc_info(    (   s   gs   exprsI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__#  s6     s   defaultc         c   sÈ   | d j p
 | d j o— t |  d t ƒ } | t j	 o/ x t | | ƒ D]
 } | VqI Wt i d f Vn t i d |  i	 i
 f Vx t |  i d ƒ D]
 } | Vq’ Wt i d f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   inputs    | s   %s(s   defaults   )(   s   modes   getattrs   selfs   Nones   inputs   xreprs   parts   astyles   style_defaults	   __class__s   __name__s   exprs   repr(   s   selfs   modes   parts   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__B  s      c         C   s-   d |  i i |  i i |  i t |  ƒ f Sd  S(   Ns   <%s.%s expr=%r at 0x%x>(   s   selfs	   __class__s
   __module__s   __name__s   exprs   id(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__P  s    (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ieval  s
    
	c           B   s   t  Z d  Z d „  Z RS(   sê   
    Enumerate the input pipe (i.e. wrap each input object in an object
    with ``index`` and ``object`` attributes).

    Examples::

        >>> xrange(20) | ieval("_,_*_") | ienum | ifilter("index % 2 == 0") | ieval("object")
    c         c   sL   d d f } x9 t t |  i ƒ ƒ D]" \ } } t | d | d | ƒVq" Wd  S(   Ns   indexs   object(   s   fieldss	   enumerates   xiters   selfs   inputs   indexs   objects   Fields(   s   selfs   indexs   fieldss   object(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter___  s     (   s   __name__s
   __module__s   __doc__s   __iter__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ienumV  s    c           B   s>   t  Z d  Z e e e d „ Z d „  Z d d „ Z d „  Z RS(   sŽ   
    Sorts the input pipe.

    Examples::

        >>> ils | isort("size")
        >>> ils | isort("_.isdir(), _.lower()", reverse=True)
    c         C   s   | |  _  | |  _ | |  _ d S(   s-  
        Create an ``isort`` object. ``key`` can be a callable or a string
        containing an expression (or ``None`` in which case the items
        themselves will be sorted). If ``reverse`` is true the sort order
        will be reversed. For the meaning of ``globals`` see ``ifilter``.
        N(   s   keys   selfs   globalss   reverse(   s   selfs   keys   globalss   reverse(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__o  s     		c         #   sÝ   |  i t j o" t t |  i ƒ d |  i ƒ} n“ t |  i ƒ o+ t t |  i ƒ d |  i d |  i ƒ} nX t	 |  i
 ƒ ‰  t |  i d d ƒ ‰ ‡  ‡ d †  } t t |  i ƒ d | d |  i ƒ} x | D]
 } | VqË Wd  S(   Ns   reverses   keys   ipipe-expressions   evalc            s   t  ˆ ˆ  t |  ƒ ƒ Sd  S(   N(   s   evals   keys   gs   AttrNamespaces   item(   s   item(   s   gs   key(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   realkey‚  s    (   s   selfs   keys   Nones   sorteds   xiters   inputs   reverses   itemss   callables
   getglobalss   globalss   gs   compiles   realkeys   item(   s   selfs   gs   itemss   realkeys   items   key(    (   s   gs   keysI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__z  s    "+$ s   defaultc         c   s  | d j p
 | d j oÐ t |  d t ƒ } | t j	 o/ x t | | ƒ D]
 } | VqI Wt i d f Vn t i d |  i	 i
 f Vx t |  i d ƒ D]
 } | Vq’ W|  i o/ t i d f Vx t t d ƒ D]
 } | VqÇ Wn t i d f Vn t i t |  ƒ f Vd  S(	   Ns   headers   footers   inputs    | s   %s(s   defaults   , s   )(   s   modes   getattrs   selfs   Nones   inputs   xreprs   parts   astyles   style_defaults	   __class__s   __name__s   keys   reverses   Trues   repr(   s   selfs   modes   parts   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__ˆ  s$      
 c         C   s3   d |  i i |  i i |  i |  i t |  ƒ f Sd  S(   Ns!   <%s.%s key=%r reverse=%r at 0x%x>(   s   selfs	   __class__s
   __module__s   __name__s   keys   reverses   id(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__š  s    (	   s   __name__s
   __module__s   __doc__s   Nones   Falses   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   isorte  s
    	i   c         C   sò   t  |  t ƒ o  t |  i t ƒ ƒ d d !} n» t  |  t ƒ o  t |  i t ƒ ƒ d d !} n‹ t  |  t i ƒ o8 d |  i	 |  i
 |  i |  i |  i |  i |  i f } n@ t  |  t i ƒ o  d |  i	 |  i
 |  i f } n t |  ƒ } | Sd  S(   Ni   iÿÿÿÿi   s"   %04d-%02d-%02d %02d:%02d:%02d.%06ds   %04d-%02d-%02d(   s
   isinstances   fields   strs   reprs
   expandtabss   tabs   texts   unicodes   datetimes   years   months   days   hours   minutes   seconds   microseconds   date(   s   fields   text(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   _format¢  s      8 s   Displayc           B   s<   t  Z d e f d „  ƒ  YZ e d „ Z d „  Z d „  Z RS(   Ns   __metaclass__c           B   s   t  Z d „  Z RS(   Nc         C   s   | |  ƒ  BSd  S(   N(   s   inputs   self(   s   selfs   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ror__µ  s    (   s   __name__s
   __module__s   __ror__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __metaclass__´  s   c         C   s   | |  _  d  S(   N(   s   inputs   self(   s   selfs   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__¸  s    c         C   s   | |  _  |  Sd  S(   N(   s   inputs   self(   s   selfs   input(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __ror__»  s    	c         C   s   d  S(   N(    (   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   display¿  s    (   s   __name__s
   __module__s   types   __metaclass__s   Nones   __init__s   __ror__s   display(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   Display³  s   	c           B   s   t  Z d Z d „  Z RS(   Nsf   less --quit-if-one-screen --LONG-PROMPT --LINE-NUMBERS --chop-long-lines --shift=8 --RAW-CONTROL-CHARSc         C   s$  yí t  i |  i d ƒ } zÆ x¿ t |  i ƒ D]® } t } x’ t
 | d ƒ D] } | o
 t } n | i d ƒ t | ƒ } t | t ƒ o$ | i | i ƒ  ƒ | i d ƒ n | i t | i | ƒ ƒ ƒ qG W| i d ƒ q+ WWd  | i ƒ  XWn0 t j
 o$ } d | i i t | ƒ f GHn Xd  S(   Ns   ws   defaults    s   =s   
s   %s: %s(   s   oss   popens   selfs   cmds   pagers   xiters   inputs   items   Falses   firsts   xattrss   attrs   writes   upgradexattrs
   isinstances   SelfDescriptors   names   strs   values   closes	   Exceptions   excs	   __class__s   __name__(   s   selfs   attrs   pagers   excs   items   first(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   displayÆ  s*      
  (   s   __name__s
   __module__s   cmds   display(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ilessÃ  s   s   _RedirectIOc           B   s,   t  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         O   s=   t  i  ƒ  |  _ t i |  _ |  t _ t i |  _ |  t _ d S(   s8   
        Map the system output streams to self.
        N(   s   StringIOs   selfs   streams   syss   stdouts   stderr(   s   selfs   argss   kwargs(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__Þ  s     	c         C   sB   |  i i | ƒ |  i i | ƒ d | j o |  i i ƒ  n d S(   s3   
        Write both to screen and to self.
        s   
N(   s   selfs   streams   writes   texts   stdouts   flush(   s   selfs   text(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   writeè  s
     c         C   s1   |  i i | ƒ |  i i | ƒ |  i i ƒ  d S(   s9   
        Write lines both to screen and to self.
        N(   s   selfs   streams
   writeliness   liness   stdouts   flush(   s   selfs   lines(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   writelinesñ  s     c         C   s6   |  i i ƒ  |  i i ƒ  |  i t _ |  i t _ d S(   s5   
        Restore the default system streams.
        N(   s   selfs   stdouts   flushs   stderrs   sys(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   restoreù  s
     (   s   __name__s
   __module__s   __init__s   writes
   writeliness   restore(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   _RedirectIOÝ  s   	
			c           B   s8   t  Z d  Z e d „ Z d „  Z d d „ Z d „  Z RS(   sµ   
    Execute a python string and capture any output to stderr/stdout.

    Examples::

        >>> import time
        >>> icap("for i in range(10): print i, time.sleep(0.1)")

    c         B   sQ   | |  _  | |  _ e ƒ  } z | e | ƒ f d  UWd  | i ƒ  X| i |  _ d  S(   N(   s   exprs   selfs   globalss   _RedirectIOs   logs
   getglobalss   restores   stream(   s   selfs   exprs   globalss   log(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__  s    			 c         c   s5   |  i i d ƒ x |  i D] } | i d ƒ Vq Wd  S(   Ni    s   
(   s   selfs   streams   seeks   lines   rstrip(   s   selfs   line(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__  s    
 s   defaultc         c   sU   | d j p
 | d j o$ t i d |  i i |  i f f Vn t i t |  ƒ f Vd  S(   Ns   headers   footers   %s(%r)(   s   modes   astyles   style_defaults   selfs	   __class__s   __name__s   exprs   repr(   s   selfs   mode(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__  s    $c         C   s$   d |  i i |  i i |  i f Sd  S(   Ns	   %s.%s(%r)(   s   selfs	   __class__s
   __module__s   __name__s   expr(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __repr__#  s    (   s   __name__s
   __module__s   __doc__s   Nones   __init__s   __iter__s	   __xrepr__s   __repr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   icap  s
   	 
	c   	      C   s  t  } t } d } t i ƒ  } xÏ t |  | ƒ D]¾ \ } } | t  j o3 t | t ƒ o | } | } q. qz d } t } n t | t ƒ oa | i | | f ƒ | t | ƒ 7} | | j o | o% | i t i d f ƒ | d 7} Pqì q. q. W| t  j o
 d } n | | | f Sd  S(   Ni    iÿÿÿÿs   ...i   (   s   Nones   aligns   Trues   fulls   widths   astyles   Texts   texts   xreprs   values   modes   styles   parts
   isinstances   ints   appends   lens	   maxlengths   style_ellisis(	   s   values   modes	   maxlengths   fulls   texts   aligns   styles   widths   part(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   xformat(  s.     


c           B   s5   t  Z d Z e i i d ƒ Z e d „ Z d „  Z	 RS(   NiÈ   s   white:black:boldc         G   sh   t  i |  | ƒ g  i } | D] } | t | ƒ ƒ q ~ |  _ d |  _	 d |  _
 d |  _ d |  _ d  S(   Ns    s   |(   s   Displays   __init__s   selfs   inputs   appends   _[1]s   attrss   attrs   upgradexattrs   headerpadchars   headersepchars   datapadchars   datasepchar(   s   selfs   inputs   attrss   attrs   _[1](    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__N  s    0			c         C   s†  t  i i } g  } t ƒ  } h  } g  } x4t	 |  i ƒ D]#} h  } |  i } | o t | d ƒ } n xã | D]Û }
 |
 | j o4 | i |
 ƒ | i |
 ƒ t |
 i ƒ  ƒ | |
 <n y |
 i | ƒ } Wn6 t t f j
 o
 ‚  n t j
 o } | } n Xt | d |  i ƒ \ } } } t | |
 | ƒ | |
 <| | | f | |
 <qn W| i | ƒ q7 W| i  d ƒ x t! | ƒ D] \ } }
 |
 i ƒ  }	 |  i$ |	 ƒ i  | ƒ | |
 t |	 ƒ } | t | ƒ d j  o( | i  |  i& | ƒ | i  |  i' ƒ qxqxW| i  d ƒ xu| D]m} xWt! | ƒ D]I\ } }
 | |
 \ } } } | |
 | } | d j o@ | i  | ƒ | t | ƒ d j  o | i  |  i( | ƒ qBn¥ | d j ov | |
 | } | d } | | } | i  |  i( | ƒ | i  | ƒ | t | ƒ d j  o | i  |  i( | ƒ qBn" | i  |  i( | ƒ | i  | ƒ | t | ƒ d j  o | i  |  i+ ƒ q$q$W| i  d ƒ qWd  S(   Ns   defaults   cells   
i   iÿÿÿÿi    i   (,   s   genutilss   Terms   couts   streams   allattrss   sets   attrsets	   colwidthss   rowss   xiters   selfs   inputs   items   rows   attrss   xattrss   attrs   appends   adds   lens   names   values   KeyboardInterrupts
   SystemExits	   Exceptions   excs   xformats   maxattrlengths   aligns   widths   texts   maxs   writes	   enumerates   is   attrnames   style_headers   spcs   headerpadchars   headersepchars   datapadchars   spc1s   spc2s   datasepchar(   s   selfs   streams   texts   attrss   spcs   rows   rowss   widths   attrsets   attrnames   attrs   spc2s   excs   allattrss   is   aligns	   colwidthss   values   items   spc1(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   displayV  sx    	 	    

(
   s   __name__s
   __module__s   maxattrlengths   astyles   Styles   fromstrs   style_headers   Nones   __init__s   display(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   idumpG  s   s   AttributeDetailc           B   sn   t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 d
 „ Z d	 d „ Z RS(   sf   
    ``AttributeDetail`` objects are use for displaying a detailed list of object
    attributes.
    c         C   s   | |  _  | |  _ d  S(   N(   s   objects   selfs
   descriptor(   s   selfs   objects
   descriptor(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __init__™  s    	c         C   s   |  i i |  i ƒ Sd  S(   N(   s   selfs
   descriptors   iters   object(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   __iter__  s    c         C   s   |  i i ƒ  Sd  S(   N(   s   selfs
   descriptors   name(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   name   s    c         C   s   |  i i |  i ƒ Sd  S(   N(   s   selfs
   descriptors   attrtypes   object(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   attrtype£  s    c         C   s   |  i i |  i ƒ Sd  S(   N(   s   selfs
   descriptors	   valuetypes   object(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   valuetype¦  s    c         C   s   |  i i |  i ƒ Sd  S(   N(   s   selfs
   descriptors   docs   object(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   doc©  s    c         C   s   |  i i |  i ƒ Sd  S(   N(   s   selfs
   descriptors   shortdocs   object(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   shortdoc¬  s    c         C   s   |  i i |  i ƒ Sd  S(   N(   s   selfs
   descriptors   values   object(   s   self(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   value¯  s    s   defaultc         C   s;   d d d d d f } | d j o | d f 7} n | Sd  S(   Ns   name()s
   attrtype()s   valuetype()s   value()s
   shortdoc()s   details   doc()(   s   attrss   mode(   s   selfs   modes   attrs(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys
   __xattrs__²  s    c         c   s±   d t  f V|  i ƒ  } | t j	 o, x t | ƒ D]
 } | Vq0 Wt i d f Vn t i |  i ƒ  f Vt i d f Vt i |  i	 ƒ  f Vt i d f Vx t |  i
 ƒ D]
 } | VqŸ Wd  S(   Niÿÿÿÿs    s    of (   s   Trues   selfs	   valuetypes   noitems   xreprs   parts   astyles   style_defaults   attrtypes   names   object(   s   selfs   modes   parts	   valuetype(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys	   __xrepr__¸  s    
  (   s   __name__s
   __module__s   __doc__s   __init__s   __iter__s   names   attrtypes	   valuetypes   docs   shortdocs   values
   __xattrs__s	   __xrepr__(    (    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   AttributeDetail”  s    								(   s   ibrowse(   s   igrids   igrids   ibrowsec         C   s   |  i ƒ  Sd  S(   N(   s   objs   display(   s   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   display_displayÜ  s    c         C   s   t  t |  ƒ ƒ Sd  S(   N(   s   display_displays   defaultdisplays   obj(   s   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   display_tableobjectà  s    c         C   s   t  |  ƒ  ƒ Sd  S(   N(   s   display_tableobjects   obj(   s   obj(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   display_tableclassä  s    c             s"   t  i ‰  ‡  d †  }  |  t  _ d  S(   Nc            sy   t  |  t ƒ o t |  t ƒ o |  ƒ  }  n t  |  t ƒ o t |  ƒ }  n t  |  t ƒ o |  i ƒ  Sn ˆ  |  ƒ d  S(   N(	   s
   isinstances   objs   types
   issubclasss   Tables   defaultdisplays   Displays   displays   _originalhook(   s   obj(   s   _originalhook(    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   displayhookê  s     (   s   syss   displayhooks   _originalhook(   s   displayhooks   _originalhook(    (   s   _originalhooksI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   installdisplayhookè  s    		(‹   s   __doc__s   syss   oss   os.paths   stats   globs   news   csvs   datetimes   typess	   itertoolss	   mimetypess   StringIOs   collectionss   ImportErrors   lists   deques   sets	   NameErrors   setss   Sets   sorteds   Nones   Falses   pwds   grps   IPython.externals   simplegenerics   paths   IPythons   genutilss   genericss   ipapis   __all__s   stat_float_timess   Trues   objects   AttrNamespaces   evals	   TypeErrors	   real_evals   noitems   items
   getglobalss
   Descriptors   SelfDescriptors   selfdescriptors   AttributeDescriptors   IndexDescriptors   MethodDescriptors   IterAttributeDescriptors   IterMethodDescriptors   FunctionDescriptors   Tables   Pipes   xreprs   generics
   xrepr_nones   when_objects   xrepr_noitems
   xrepr_bools	   when_types   bools	   xrepr_strs   strs   xrepr_unicodes   unicodes   xrepr_numbers   ints   longs   floats   xrepr_complexs   complexs   xrepr_datetimes
   xrepr_dates   dates
   xrepr_times   times   xrepr_timedeltas	   timedeltas
   xrepr_types   types   xrepr_exceptions	   Exceptions   xrepr_listtuples   tuples
   xrepr_dicts   dicts   DictProxyTypes   upgradexattrs   xattrss   xattrs_complexs   _isdicts   _isstrs   xiters   ichains   ifiles   xiter_ifiles   xrepr_ifiles   ilss   iglobs   iwalks	   ipwdentrys   ipwds	   igrpentrys   igrps   Fieldss
   FieldTables   Lists   ienvs   ihists   Aliass   ialiass   icsvs   ixs   ifilters   ievals   ienums   isorts   tabs   _formats   Displays   ilesss   _RedirectIOs   icaps   xformats   astyles   idumps   AttributeDetails   ibrowses   igrids   defaultdisplays   appends   display_displays   result_displays   display_tableobjects   display_tableclasss   __metaclass__s   installdisplayhook(h   s   igrps   datetimes   installdisplayhooks   _formats
   xrepr_times   isorts   collectionss   ipapis   display_tableobjects   icaps   Pipes   sorteds   Displays   xrepr_listtuples   csvs   SelfDescriptors   items   defaultdisplays   sets   genutilss
   xrepr_dicts   stats   igrids   ipwds   __all__s   genericss   news   astyles   xiter_ifiles   idumps   xattrs_complexs	   ipwdentrys
   Descriptors   paths
   xrepr_dates   _isstrs   IndexDescriptors   ibrowses   StringIOs   xrepr_numbers   noitems   FunctionDescriptors   IterMethodDescriptors   ilss   ihists   simplegenerics   xformats   IterAttributeDescriptors   _RedirectIOs   iwalks   icsvs   display_tableclasss   ifiles   xreprs   ievals   AttrNamespaces   display_displays   upgradexattrs	   real_evals   xrepr_complexs   deques	   igrpentrys   _isdicts   xrepr_datetimes   ialiass   pwds   xrepr_timedeltas
   getglobalss   xrepr_unicodes   AttributeDescriptors   xrepr_noitems   xiters   ichains   xattrss   ixs   ienums   tabs   xrepr_exceptions
   xrepr_bools   AttributeDetails   grps
   FieldTables	   itertoolss   selfdescriptors
   xrepr_types	   mimetypess
   xrepr_nones   Fieldss   globs   Lists   syss   Aliass   evals	   xrepr_strs   ilesss   typess   ifilters   xrepr_ifiles   oss   ienvs   iglobs   MethodDescriptors   setss   Table(    (    sI   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/Extensions/ipipe.pys   ?T   s6  Q		
	E	"	@	 #%&);0
	$$		
	! 	
%"EE".']G;	&%		M3				