00000046
  6   ˆl–ß=¿J	å7µ2 Y¸®2ú˜´o�þck8Œ.ˆM€®?ÍƒÂÌÂÀÉ     §
    JDvc\  ã                   óÎ   — d Z ddlmZ ddlZddlmZ ddlmZ ddlm	Z
  G d„ de¦  «        Z G d	„ d
e¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        ZdS )zè
Interface definitions paralleling the abstract base classes defined in
:mod:`numbers`.

After this module is imported, the standard library types will declare
that they implement the appropriate interface.

.. versionadded:: 5.0.0
é    )Úabsolute_importN)ÚABCInterface)Úoptional)ÚPYTHON2c                   ó   — e Zd Zej        ZdS )ÚINumberN)Ú__name__Ú
__module__Ú__qualname__ÚabcÚNumber© ó    ú?/usr/lib/python3/dist-packages/zope/interface/common/numbers.pyr   r   $   s   € € € € € Ø
Œ*€C€C€Cr   r   c                   óT   — e Zd Zej        Zed„ ¦   «         Zered„ ¦   «         ZeZ	dS dS )ÚIComplexc                  ó   — dS ©z<
        Rarely implemented, even in builtin types.
        Nr   r   r   r   Ú__complex__zIComplex.__complex__+   ó   € € € r   c                 ó   — dS ©zS
            The interpreter may supply one through complicated rules.
            Nr   ©Úothers    r   Ú__eq__zIComplex.__eq__2   r   r   N)
r	   r
   r   r   ÚComplexr   r   ÚPY2r   Ú__ne__r   r   r   r   r   (   sb   € € € € € Ø
Œ+€Càðð ñ „Xðð
 ð Ø	ð	ð 	ñ 
Œð	ð
 ˆˆˆðð r   r   c                   ó\   — e Zd Zej        Zed„ ¦   «         ZexZZe	red„ ¦   «         Z
e
ZdS dS )ÚIRealc                  ó   — dS r   r   r   r   r   r   zIReal.__complex__=   r   r   c                 ó   — dS r   r   r   s    r   Ú__le__zIReal.__le__F   r   r   N)r	   r
   r   r   ÚRealr   r   Ú	__floor__Ú__ceil__r   r#   Ú__lt__r   r   r   r    r    :   sl   € € € € € Ø
Œ(€Càðð ñ „Xðð
 'Ð&€I�à
ð Ø	ð	ð 	ñ 
Œð	ð
 ˆˆˆðð r   r    c                   ó   — e Zd Zej        ZdS )Ú	IRationalN)r	   r
   r   r   ÚRationalr   r   r   r)   r)   O   ó   € € € € € Ø
Œ,€C€C€Cr   r)   c                   ó   — e Zd Zej        ZdS )Ú	IIntegralN)r	   r
   r   r   ÚIntegralr   r   r   r-   r-   S   r+   r   r-   )Ú__doc__Ú
__future__r   Únumbersr   Úzope.interface.commonr   r   Úzope.interface._compatr   r   r   r   r    r)   r-   r   r   r   ú<module>r4      sA  ððð ð 'Ð &Ð &Ð &Ð &Ð &à Ð Ð Ð à .Ð .Ð .Ð .Ð .Ð .Ø *Ð *Ð *Ð *Ð *Ð *à 1Ð 1Ð 1Ð 1Ð 1Ð 1ðð ð ð ð ˆlñ ô ð ðð ð ð ð ˆwñ ô ð ð$ð ð ð ð ˆHñ ô ð ð*ð ð ð ð �ñ ô ð ðð ð ð ð �	ñ ô ð ð ð r     7   ˆl–äY>”d*ClÊ€~à¸ÔÅ£�þBI#Y²ºór
0:áüÿÎƒu—�ÍÌÁÊ Û    # -*- coding: utf-8 -*-
# copyright 2018 gevent
# cython: auto_pickle=False,embedsignature=True,always_allow_keywords=False
"""
Low-level waiting primitives.

"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import sys

from gevent._hub_local import get_hub_noargs as get_hub
from gevent.exceptions import ConcurrentObjectUseError

__all__ = [
    'Waiter',
]

_NONE = object()

locals()['getcurrent'] = __import__('greenlet').getcurrent
locals()['greenlet_init'] = lambda: None


class Waiter(object):
    """
    A low level communication utility for greenlets.

    Waiter is a wrapper around greenlet's ``switch()`` and ``throw()`` calls that makes them somewhat safer:

    * switching will occur only if the waiting greenlet is executing :meth:`get` method currently;
    * any error raised in the greenlet is handled inside :meth:`switch` and :meth:`throw`
    * if :meth:`switch`/:meth:`throw` is called before the receiver calls :meth:`get`, then :class:`Waiter`
      will store the value/exception. The following :meth:`get` will return the valu