³ņ
®d|Mc        	   @   s  d  Z  d d k Z d d k Z d d k Z d d k l Z l Z d d k l Z d d k	 l Z l
 Z
 l Z l Z h  Z d   Z d   Z d e i f d	     YZ d
 e f d     YZ d d  Z e   Z d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d S(   s{  Connection pooling for DB-API connections.

Provides a number of connection pool implementations for a variety of
usage scenarios and thread behavior requirements imposed by the
application, DB-API or database itself.

Also provides a DB-API 2.0 connection proxying mechanism allowing
regular DB-API connect() methods to be transparently managed by a
SQLAlchemy connection pool.
i’’’’N(   t   exct   log(   t   queue(   t	   threadingt   picklet   as_interfacet   memoized_propertyc         K   s?   y t  |  SWn, t j
 o  t  i |  t |  |   Sn Xd S(   sI  Return a proxy for a DB-API module that automatically 
    pools connections.

    Given a DB-API 2.0 module and pool management parameters, returns
    a proxy for the module that will automatically pool connections,
    creating new connection pools for each distinct set of connection
    arguments sent to the decorated module's connect() function.

    :param module: a DB-API 2.0 database module

    :param poolclass: the class used by the pool module to provide
      pooling.  Defaults to :class:`QueuePool`.

    :param \*\*params: will be passed through to *poolclass*

    N(   t   proxiest   KeyErrort
   setdefaultt   _DBProxy(   t   modulet   params(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   manage   s    c          C   s/   x t  i   D] }  |  i   q Wt  i   d S(   sY   Remove all current DB-API 2.0 managers.

    All pools and connections are disposed.
    N(   R   t
   itervaluest   closet   clear(   t   manager(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   clear_managers1   s     t   Poolc           B   s   e  Z d  Z d d e d e d 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(   s)   Abstract base class for connection pools.i’’’’c   	      C   sŅ   | o | |  _  |  _ n
 d |  _ t i |  d | |  _ t i   |  _ | |  _	 | |  _
 | |  _ | |  _ | |  _ g  |  _ g  |  _ g  |  _ g  |  _ g  |  _ | o" x | D] } |  i |  q³ Wn d S(   sł  
        Construct a Pool.

        :param creator: a callable function that returns a DB-API
          connection object.  The function will be called with
          parameters.

        :param recycle: If set to non -1, number of seconds between
          connection recycling, which means upon checkout, if this
          timeout is surpassed the connection will be closed and
          replaced with a newly opened connection. Defaults to -1.

        :param logging_name:  String identifier which will be used within
          the "name" field of logging records generated within the 
          "sqlalchemy.pool" logger. Defaults to a hexstring of the object's 
          id.

        :param echo: If True, connections being pulled and retrieved
          from the pool will be logged to the standard output, as well
          as pool sizing information.  Echoing can also be achieved by
          enabling logging for the "sqlalchemy.pool"
          namespace. Defaults to False.

        :param use_threadlocal: If set to True, repeated calls to
          :meth:`connect` within the same application thread will be
          guaranteed to return the same connection object, if one has
          already been retrieved from the pool and has not been
          returned yet.  Offers a slight performance advantage at the
          cost of individual transactions by default.  The
          :meth:`unique_connection` method is provided to bypass the
          threadlocal behavior installed into :meth:`connect`.

        :param reset_on_return: If true, reset the database state of
          connections returned to the pool.  This is typically a
          ROLLBACK to release locks and transaction resources.
          Disable at your own peril.  Defaults to True.

        :param listeners: A list of
          :class:`~sqlalchemy.interfaces.PoolListener`-like objects or
          dictionaries of callables that receive events when DB-API
          connections are created, checked out and checked in to the
          pool.

        t   echoflagN(   t   logging_namet   _orig_logging_namet   NoneR   t   instance_loggert   loggerR   t   localt   _threadconnst   _creatort   _recyclet   _use_threadlocalt   _reset_on_returnt   echot	   listenerst   _on_connectt   _on_first_connectt   _on_checkoutt   _on_checkint   add_listener(	   t   selft   creatort   recycleR    t   use_threadlocalR   t   reset_on_returnR!   t   l(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   __init__>   s&    1											 c         C   s   t  |   i   S(   sä   Produce a DBAPI connection that is not referenced by any
        thread-local context.

        This method is different from :meth:`.Pool.connect` only if the
        ``use_threadlocal`` flag has been set to ``True``.

        (   t   _ConnectionFairyt   checkout(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   unique_connection   s    	c         C   s
   t  |   S(   s6   Called by subclasses to create a new ConnectionRecord.(   t   _ConnectionRecord(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   create_connection   s    c         C   s   t     d S(   s  Return a new :class:`.Pool`, of the same class as this one
        and configured with identical creation arguments.

        This method is used in conjunection with :meth:`dispose` 
        to close out an entire :class:`.Pool` and create a new one in 
        its place.

        N(   t   NotImplementedError(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   recreate   s    
c         C   s   t     d S(   s  Dispose of this pool.

        This method leaves the possibility of checked-out connections
        remaining open, It is advised to not reuse the pool once dispose()
        is called, and to instead use a new pool constructed by the
        recreate() method.

        N(   R3   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   dispose”   s    
c         C   s   |  i  p t |   i   Sn y( |  i i   } | o | i   Sn Wn t j
 o n Xt |   } t i |  |  i _ | i   S(   sŹ   Return a DBAPI connection from the pool.

        The connection is instrumented such that when its 
        ``close()`` method is called, the connection will be returned to 
        the pool.

        (   R   R.   R/   R   t   currentt   AttributeErrort   weakreft   ref(   R'   t   rect   agent(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   connect­   s    
c         C   s;   |  i  o  t |  i d  o |  i ` n |  i |  d S(   sµ   Given a _ConnectionRecord, return it to the :class:`.Pool`.

        This method is called when an instrumented DBAPI connection
        has its ``close()`` method called.

        R6   N(   R   t   hasattrR   R6   t   do_return_conn(   R'   t   record(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   return_connĆ   s    c         C   s
   |  i    S(   s§   Return a non-instrumented DBAPI connection from this :class:`.Pool`.

        This is called by ConnectionRecord in order to get its DBAPI 
        resource.

        (   t   do_get(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   getĪ   s    c         C   s   t     d S(   s7   Implementation for :meth:`get`, supplied by subclasses.N(   R3   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRA   ×   s    c         C   s   t     d S(   s?   Implementation for :meth:`return_conn`, supplied by subclasses.N(   R3   (   R'   t   conn(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR>   Ü   s    c         C   s   t     d  S(   N(   R3   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   statusį   s    c         C   s¶   t  | d d } |  i i |  t | d  o |  i i |  n t | d  o |  i i |  n t | d  o |  i i |  n t | d  o |  i i |  n d S(   s  Add a ``PoolListener``-like object to this pool.

        ``listener`` may be an object that implements some or all of
        PoolListener, or a dictionary of callables containing implementations
        of some or all of the named methods in PoolListener.

        t   methodsR<   t   first_connectR/   t   checkinN(   s   connects   first_connects   checkouts   checkin(   R   R!   t   appendR=   R"   R#   R$   R%   (   R'   t   listener(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR&   ä   s    			N(   t   __name__t
   __module__t   __doc__R   t   Falset   TrueR-   R0   R2   R4   R5   R<   R@   RB   RA   R>   RD   R&   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   ;   s    C											R1   c           B   sA   e  Z d    Z d   Z d d  Z d   Z d   Z d   Z RS(   c         C   s¤   | |  _  |  i   |  _ h  |  _ | i i d d   } | d  j	 o( x% | D] } | i |  i |   qJ Wn | i o+ x( | i D] } | i	 |  i |   q Wn d  S(   NR#   (
   t   _ConnectionRecord__poolt   _ConnectionRecord__connectt
   connectiont   infot   __dict__t   popR   RF   R"   R<   (   R'   t   poolt   lsR,   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-   ū   s    		 

 c         C   s   |  i  d  j	 ol |  i i i d |  i   y |  i  i   Wq| t t f j
 o
   q| |  i i i d |  i   q| Xn d  S(   Ns   Closing connection %rs   Exception closing connection %r(   RQ   R   RO   R   t   debugR   t
   SystemExitt   KeyboardInterrupt(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR     s    c         C   sf   | d  j	 o) |  i i i d |  i | i i |  n |  i i i d |  i  |  i   d  |  _ d  S(   Ns(   Invalidate connection %r (reason: %s:%s)s   Invalidate connection %r(   R   RO   R   RR   RQ   t	   __class__RJ   t   _ConnectionRecord__close(   R'   t   e(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt
   invalidate  s    
c         C   s#  |  i  d  j o[ |  i   |  _  |  i i   |  i i o. x+ |  i i D] } | i |  i  |   qF Wqn² |  i i d j o t	 i	   |  i
 |  i i j o~ |  i i i d |  i   |  i   |  i   |  _  |  i i   |  i i o. x+ |  i i D] } | i |  i  |   q÷ Wqn |  i  S(   Ni’’’’s)   Connection %r exceeded timeout; recycling(   RQ   R   RP   RR   R   RO   R"   R<   R   t   timet	   starttimeR   R[   (   R'   R,   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   get_connection  s(      

 c         C   s}   y* |  i  i i d |  i  |  i i   WnL t t f j
 o
   n2 t j
 o% } |  i  i i d |  i |  n Xd  S(   Ns   Closing connection %rs)   Connection %r threw an error on close: %s(   RO   R   RW   RQ   R   RX   RY   t	   Exception(   R'   R\   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   __close1  s    c         C   sq   y< t  i    |  _ |  i i   } |  i i i d |  | SWn. t j
 o" } |  i i i d |    n Xd  S(   Ns   Created new connection %rs   Error on connect(): %s(   R^   R_   RO   R   R   RW   Ra   (   R'   RQ   R\   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt	   __connect<  s    N(	   RJ   RK   R-   R   R   R]   R`   R[   RP   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR1   ś   s   				c         C   sP  t  i |  | d  j	 o( | i | j	 p t | t  o d  Sn |  d  j	 o y7 | i o |  i   n | d  j o |  i   n Wqą t	 j
 oG } | d  j	 o | i
 d |  n t | t t f  o   qÜ qą Xn | d  j	 o_ d  | _ | i i d |   | i o( x% | i D] } | i |  |  qWn | i |  n d  S(   NR\   s$   Connection %r being returned to pool(   t   _refst   discardR   t   fairyt
   isinstancet   AssertionPoolR   t   rollbackR   Ra   R]   RX   RY   R   RW   R%   RG   R@   (   RQ   t   connection_recordRU   R9   R\   R,   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   _finalize_fairyG  s0    
	

 R.   c           B   s   e  Z d  Z d Z d   Z e d    Z e d	    Z e d
    Z d d  Z
 d   Z d   Z d   Z d   Z d   Z d   Z RS(   sK   Proxies a DB-API connection and provides return-on-dereference
    support.t   _poolt	   __counterRQ   t   _connection_recordt   __weakref__t   _detached_infoc            s­     |  _  d |  _ y^   i    |  _ |  i i    |  _ t i |      f d     _ t	 i
   Wn d  |  _ d  |  _   n X|  i  i i d |  i  d  S(   Ni    c            s   t      |   S(    (   Rk   (   R9   (   R:   RU   RC   (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   <lambda>u  s    s#   Connection %r checked out from pool(   Rl   t   _ConnectionFairy__counterRB   Rn   R`   RQ   R8   R9   Rf   Rd   t   addR   R   RW   (   R'   RU   (    (   RU   R:   RC   sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-   m  s    				c         C   s
   |  i  i S(   N(   Rl   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   _logger  s    c         C   s   |  i  d  j	 S(   N(   RQ   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   is_valid  s    c         C   s}   y |  i  i SWnh t j
 o\ |  i d j o t i d   n y |  i SWqy t j
 o h  |  _ } | Sqy Xn Xd S(   s4   An info collection unique to this DB-API connection.s   This connection is closedN(   Rn   RR   R7   RQ   R   R    t   InvalidRequestErrorRp   (   R'   t   value(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRR     s    c         C   sa   |  i  d j o t i d   n |  i d j	 o |  i i d |  n d |  _  |  i   d S(   s·   Mark this connection as invalidated.

        The connection will be immediately closed.  The containing
        ConnectionRecord will create a new connection when next used.
        s   This connection is closedR\   N(   RQ   R   R    Rv   Rn   R]   t   _close(   R'   R\   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR]     s    	c         O   sU   y& |  i  i | |   } t |  |  SWn( t j
 o } |  i d |    n Xd  S(   NR\   (   RQ   t   cursort   _CursorFairyRa   R]   (   R'   t   argst   kwargst   cR\   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRy   „  s    c         C   s   t  |  i |  S(   N(   t   getattrRQ   (   R'   t   key(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   __getattr__­  s    c         C   s8  |  i  d  j o t i d   n |  i d 7_ |  i i p |  i d j o |  Sn d } x§ | d j o y8 x- |  i i D] } | i |  i  |  i |   q~ W|  SWqa t i	 j
 oK } |  i i
 i d |  |  i i |  |  i i   |  _  | d 8} qa Xqa W|  i i
 i d  |  i   t i d   d  S(   Ns   This connection is closedi   i   i    s&   Disconnection detected on checkout: %ss+   Reconnection attempts exhausted on checkout(   RQ   R   R    Rv   Rr   Rl   R$   R/   Rn   t   DisconnectionErrorR   RR   R]   R`   (   R'   t   attemptsR,   R\   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR/   °  s,      

c         C   sq   |  i  d j	 o] t i |  i   d |  i  _ d |  i  _ |  i i |  i   |  i  i i	   |  _
 d |  _  n d S(   s"  Separate this connection from its Pool.

        This means that the connection will no longer be returned to the
        pool when closed, and will instead be literally closed.  The
        containing ConnectionRecord is separated from the DB-API connection,
        and will create a new connection when next used.

        Note that any overall connection limiting constraints imposed by a
        Pool implementation may be violated after a detach, as the detached
        connection is removed from the pool's knowledge and control.
        N(   Rn   R   Rd   t   removeRf   RQ   Rl   R>   RR   t   copyRp   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   detachŹ  s    c         C   s1   |  i  d 8_  |  i  d j o |  i   n d  S(   Ni   i    (   Rr   Rx   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   ą  s    c         C   s/   t  |  i |  i |  i  d  |  _ d  |  _ d  S(   N(   Rk   RQ   Rn   Rl   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRx   å  s    	(   s   _pools	   __counters
   connections   _connection_records   __weakref__s   _detached_infoN(   RJ   RK   RL   t	   __slots__R-   t   propertyRt   Ru   RR   R   R]   Ry   R   R/   R   R   Rx   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR.   f  s    						Rz   c           B   sG   e  Z d	 Z d   Z d
 d  Z d   Z d   Z d   Z d   Z	 RS(   t   _parentRy   t   executec         C   s"   | |  _  | |  _ | i |  _ d  S(   N(   R   Ry   R   (   R'   t   parentRy   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-   ķ  s    		c         C   s   |  i  i d |  d  S(   NR\   (   R   R]   (   R'   R\   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR]   ņ  s    c         C   s   t  |  i  S(   N(   t   iterRy   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   __iter__õ  s    c         C   s   y |  i  i   Wnz t j
 on } y t |  } Wn t j
 o t |  } n X|  i i i d |  t	 | t
 t f  o   q n Xd  S(   Ns   Error closing cursor: %s(   Ry   R   Ra   t   strt	   TypeErrort   reprR   Rt   t   warnRg   RX   RY   (   R'   R\   t   ex_text(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   ų  s    c         C   s>   | |  i  j o t i |  | |  n t |  i | |  d  S(   N(   R   t   objectt   __setattr__t   setattrRy   (   R'   R   Rw   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR     s    c         C   s   t  |  i |  S(   N(   R~   Ry   (   R'   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR     s    (   s   _parents   cursors   executeN(
   RJ   RK   R   R-   R   R]   R   R   R   R   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRz   ź  s   				t   SingletonThreadPoolc           B   sY   e  Z d  Z d d  Z d   Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 RS(
   s  A Pool that maintains one connection per thread.

    Maintains one connection per each thread, never moving a connection to a
    thread other than the one which it was created in.

    This is used for SQLite, which both does not handle multithreading by
    default, and also requires a singleton connection if a :memory: database
    is being used.

    Options are the same as those of :class:`Pool`, as well as:

    :param pool_size: The number of threads in which to maintain connections 
        at once.  Defaults to five.

    i   c         K   sE   t  | d <t i |  | |  t i   |  _ t   |  _ | |  _ d  S(   NR*   (	   RN   R   R-   R   R   t   _connt   sett
   _all_connst   size(   R'   R(   t	   pool_sizet   kw(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-     s
    
c         C   sS   |  i  i d  t |  i d |  i d |  i d |  i d |  i d |  i d |  i	 S(   Ns   Pool recreatingR   R)   R    R   R*   R!   (
   R   RR   R   R   R   R   R    R   R   R!   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR4   &  s    					c         C   sX   xD |  i  D]9 } y | i   Wq
 t t f j
 o
   q
 q
 Xq
 W|  i  i   d S(   s   Dispose of this pool.N(   R   R   RX   RY   R   (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR5   0  s    
 c         C   sC   t  |  i d  o, |  i i   } |  i i |  |  i ` n d  S(   NR6   (   R=   R   R6   R   Re   (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   dispose_local?  s    c         C   s2   x+ t  |  i  |  i j o |  i i   q Wd  S(   N(   t   lenR   R   RT   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   cleanupE  s     c         C   s   d t  |   t |  i  f S(   Ns"   SingletonThreadPool id:%d size: %d(   t   idR   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRD   I  s    c         C   s   d  S(   N(    (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR>   M  s    c         C   s   y" |  i  i   } | o | Sn Wn t j
 o n X|  i   } t i |  |  i  _ |  i i |  t |  i  |  i	 j o |  i
   n | S(   N(   R   R6   R7   R2   R8   R9   R   Rs   R   R   R   (   R'   R}   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRA   P  s    (   RJ   RK   RL   R-   R4   R5   R   R   RD   R>   RA   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR     s   	
					t	   QueuePoolc           B   sq   e  Z d  Z d d d d  Z d   Z d   Z d   Z d   Z d	   Z d
   Z	 d   Z
 d   Z d   Z RS(   s>   A Pool that imposes a limit on the number of open connections.i   i
   i   c         K   sn   t  i |  | |  t i |  |  _ d | |  _ | |  _ | |  _ |  i d j o t i	   p d |  _ d S(   sz  
        Construct a QueuePool.

        :param creator: a callable function that returns a DB-API
          connection object.  The function will be called with
          parameters.

        :param pool_size: The size of the pool to be maintained,
          defaults to 5. This is the largest number of connections that
          will be kept persistently in the pool. Note that the pool
          begins with no connections; once this number of connections
          is requested, that number of connections will remain.
          ``pool_size`` can be set to 0 to indicate no size limit; to
          disable pooling, use a :class:`~sqlalchemy.pool.NullPool`
          instead.

        :param max_overflow: The maximum overflow size of the
          pool. When the number of checked-out connections reaches the
          size set in pool_size, additional connections will be
          returned up to this limit. When those additional connections
          are returned to the pool, they are disconnected and
          discarded. It follows then that the total number of
          simultaneous connections the pool will allow is pool_size +
          `max_overflow`, and the total number of "sleeping"
          connections the pool will allow is pool_size. `max_overflow`
          can be set to -1 to indicate no overflow limit; no limit
          will be placed on the total number of concurrent
          connections. Defaults to 10.

        :param timeout: The number of seconds to wait before giving up
          on returning a connection. Defaults to 30.

        :param recycle: If set to non -1, number of seconds between
          connection recycling, which means upon checkout, if this
          timeout is surpassed the connection will be closed and
          replaced with a newly opened connection. Defaults to -1.

        :param echo: If True, connections being pulled and retrieved
          from the pool will be logged to the standard output, as well
          as pool sizing information.  Echoing can also be achieved by
          enabling logging for the "sqlalchemy.pool"
          namespace. Defaults to False.

        :param use_threadlocal: If set to True, repeated calls to
          :meth:`connect` within the same application thread will be
          guaranteed to return the same connection object, if one has
          already been retrieved from the pool and has not been
          returned yet.  Offers a slight performance advantage at the
          cost of individual transactions by default.  The
          :meth:`unique_connection` method is provided to bypass the
          threadlocal behavior installed into :meth:`connect`.

        :param reset_on_return: If true, reset the database state of
          connections returned to the pool.  This is typically a
          ROLLBACK to release locks and transaction resources.
          Disable at your own peril.  Defaults to True.

        :param listeners: A list of
          :class:`~sqlalchemy.interfaces.PoolListener`-like objects or
          dictionaries of callables that receive events when DB-API
          connections are created, checked out and checked in to the
          pool.

        i    i’’’’N(   R   R-   t
   sqla_queuet   QueueRl   t	   _overflowt   _max_overflowt   _timeoutR   t   LockR   t   _overflow_lock(   R'   R(   R   t   max_overflowt   timeoutR   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-   a  s    B		c         C   sh   |  i  i d  t |  i d |  i i d |  i d |  i d |  i d |  i	 d |  i
 d |  i d	 |  i S(
   Ns   Pool recreatingR   RØ   R©   R)   R    R   R*   R!   (   R   RR   R    R   Rl   t   maxsizeR¤   R„   R   R    R   R   R!   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR4   «  s    				c         C   s   y |  i  i | t  Wnj t i j
 o[ |  i d  j o |  i d 8_ q |  i i   z |  i d 8_ Wd  |  i i	   Xn Xd  S(   Ni   (
   Rl   t   putRM   R”   t   FullR§   R   R£   t   acquiret   release(   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR>   µ  s    c         C   s{  y< |  i  d j o |  i |  i  j } |  i i | |  i  SWn8t i j
 o)|  i  d j oW |  i |  i  j oD | p |  i   Sq· t i	 d |  i
   |  i   |  i f   n |  i d  j	 o |  i i   n |  i  d j oB |  i |  i  j o/ |  i d  j	 o |  i i   n |  i   Sn z |  i   } |  i d 7_ Wd  |  i d  j	 o |  i i   n X| Sn Xd  S(   Ni’’’’sP   QueuePool limit of size %d overflow %d reached, connection timed out, timeout %di   (   R¤   R£   Rl   RB   R„   R”   t   EmptyRA   R    t   TimeoutErrorR   t   overflowR§   R   R­   R®   R2   (   R'   t   waitt   con(    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRA   Ā  s2    &c         C   sy   xF t  o> y  |  i i t  } | i   Wq t i j
 o Pq Xq Wd |  i   |  _ |  i	 i
 d |  i    d  S(   Ni    s   Pool disposed. %s(   RN   Rl   RB   RM   R   R”   RÆ   R   R£   R   RR   RD   (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR5   ć  s     c         C   s,   d |  i    |  i   |  i   |  i   f S(   Ns_   Pool size: %d  Connections in pool: %d Current Overflow: %d Current Checked out connections: %d(   R   t	   checkedinR±   t
   checkedout(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRD   ī  s
    			c         C   s
   |  i  i S(   N(   Rl   RŖ   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   ö  s    c         C   s   |  i  i   S(   N(   Rl   t   qsize(   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR“   ł  s    c         C   s   |  i  S(   N(   R£   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR±   ü  s    c         C   s   |  i  i |  i  i   |  i S(   N(   Rl   RŖ   R¶   R£   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRµ   ’  s    (   RJ   RK   RL   R-   R4   R>   RA   R5   RD   R   R“   R±   Rµ   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR    ^  s   J	
		!					t   NullPoolc           B   sD   e  Z d  Z d   Z d   Z d   Z d   Z d   Z d   Z RS(   sQ  A Pool which does not pool connections.

    Instead it literally opens and closes the underlying DB-API connection
    per each connection open/close.

    Reconnect-related functions such as ``recycle`` and connection
    invalidation are not supported by this Pool implementation, since
    no connections are held persistently.

    c         C   s   d S(   NR·   (    (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRD     s    c         C   s   | i    d  S(   N(   R   (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR>     s    c         C   s   d  S(   N(    (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   do_return_invalid  s    c         C   s
   |  i    S(   N(   R2   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRA     s    c         C   sJ   |  i  i d  t |  i d |  i d |  i d |  i d |  i d |  i S(   Ns   Pool recreatingR)   R    R   R*   R!   (	   R   RR   R·   R   R   R    R   R   R!   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR4     s    				c         C   s   d  S(   N(    (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR5   $  s    (	   RJ   RK   RL   RD   R>   Rø   RA   R4   R5   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR·     s   
					
t
   StaticPoolc           B   sk   e  Z d  Z e d    Z e d    Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z RS(
   s.  A Pool of exactly one connection, used for all requests.

    Reconnect-related functions such as ``recycle`` and connection
    invalidation (which is also used to support auto-reconnect) are not
    currently supported by this Pool implementation but may be implemented
    in a future release.

    c         C   s
   |  i    S(   N(   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   2  s    c         C   s
   t  |   S(   N(   R1   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRQ   6  s    c         C   s   d S(   NR¹   (    (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRD   :  s    c         C   s.   d |  i  j o |  i i   d  |  _ n d  S(   NR   (   RS   R   R   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR5   =  s    c         C   sY   |  i  i d  |  i d |  i d |  i d |  i d |  i d |  i d |  i d |  i	  S(	   Ns   Pool recreatingR(   R)   R*   R+   R    R   R!   (
   R   RR   RZ   R   R   R   R   R    R   R!   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR4   B  s    					c         C   s   |  i  S(   N(   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR2   L  s    c         C   s   d  S(   N(    (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR>   O  s    c         C   s   d  S(   N(    (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRø   R  s    c         C   s   |  i  S(   N(   RQ   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRA   U  s    (   RJ   RK   RL   R   R   RQ   RD   R5   R4   R2   R>   Rø   RA   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR¹   (  s   			
			Rh   c           B   sM   e  Z d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 RS(   sś   A Pool that allows at most one checked out connection at any given
    time.

    This will raise an exception if more than one connection is checked out
    at a time.  Useful for debugging code that is using more connections
    than desired.

    c         O   s)   d  |  _ t |  _ t i |  | |  d  S(   N(   R   R   RM   t   _checked_outR   R-   (   R'   R{   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-   b  s    		c         C   s   d S(   NRh   (    (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRD   g  s    c         C   s>   |  i  p t d   n t |  _  | |  i j p t  d  S(   Ns   connection is not checked out(   Rŗ   t   AssertionErrorRM   R   (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR>   j  s    
	c         C   s   d  |  _ t |  _ d  S(   N(   R   R   RM   Rŗ   (   R'   RC   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRø   p  s    	c         C   s(   t  |  _ |  i o |  i i   n d  S(   N(   RM   Rŗ   R   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR5   t  s    	
c         C   s8   |  i  i d  t |  i d |  i d |  i d |  i S(   Ns   Pool recreatingR    R   R!   (   R   RR   Rh   R   R    R   R!   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR4   y  s    	c         C   sG   |  i  o t d   n |  i p |  i   |  _ n t |  _  |  i S(   Ns!   connection is already checked out(   Rŗ   R»   R   R2   RN   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRA     s    

	(
   RJ   RK   RL   R-   RD   R>   Rø   R5   R4   RA   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRh   X  s   						R
   c           B   sY   e  Z d  Z e d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z RS(	   s	  Layers connection pooling behavior on top of a standard DB-API module.

    Proxies a DB-API 2.0 connect() call to a connection pool keyed to the
    specific connect parameters. Other functions and attributes are delegated
    to the underlying DB-API module.
    c         K   s7   | |  _  | |  _ | |  _ h  |  _ t i   |  _ d S(   sŲ   Initializes a new proxy.

        module
          a DB-API 2.0 module

        poolclass
          a Pool class, defaulting to QueuePool

        Other parameters are sent to the Pool object's constructor.

        N(   R   R   t	   poolclasst   poolsR   R¦   t   _create_pool_mutex(   R'   R   R¼   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR-     s
    				c         C   s(   x! |  i  i   D] } |  i  | =q Wd  S(   N(   R½   t   keys(   R'   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   ¤  s     c         C   s   |  i    d  S(   N(   R   (   R'   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   __del__Ø  s    c         C   s   t  |  i |  S(   N(   R~   R   (   R'   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR   «  s    c            s±     i      } y   i | SWn t j
 o}   i i   zX |   i j o9   i     f d     i  } |   i | <| Sn   i | SWd    i i   Xn Xd  S(   Nc              s     i  i     S(    (   R   R<   (    (   R'   R{   R   (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRq   ¶  s    (   t
   _serializeR½   R   R¾   R­   R¼   R   R®   (   R'   R{   R   R   RU   (    (   R'   R{   R   sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyt   get_pool®  s    c         O   s   |  i  | |   i   S(   s,  Activate a connection to the database.

        Connect to the database using this DBProxy's module and the given
        connect arguments.  If the arguments match an existing pool, the
        connection will be returned from the pool's current thread-local
        connection instance, or if there is no thread-local connection
        instance it will be checked out from the set of pooled connections.

        If the pool has no available connections and allows new connections
        to be created, a new database connection will be made.

        (   RĀ   R<   (   R'   R{   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR<   æ  s    c         O   s:   |  i  | |   } y |  i | =Wn t j
 o n Xd S(   s;   Dispose the pool referenced by the given connect arguments.N(   RĮ   R½   R   (   R'   R{   R   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR5   Ļ  s
    c         O   s   t  i | | g  S(   N(   R   t   dumps(   R'   R{   R   (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyRĮ   Ų  s    (   RJ   RK   RL   R    R-   R   RĄ   R   RĀ   R<   R5   RĮ   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pyR
     s   							(    RL   R8   R^   R   t
   sqlalchemyR    R   R   R”   t   sqlalchemy.utilR   R   R   R   R   R   t
   IdentifiedR   R   R1   R   Rk   R   Rd   R.   Rz   R   R    R·   R¹   Rh   R
   (    (    (    sl   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.5/site-packages/SQLAlchemy-0.6.6-py2.5.egg/sqlalchemy/pool.pys   <module>   s&   $"		
æM	$P¤&01