Ë
    	š„jÙ  ã                   ó*   — d Z eZ e«       Zefd„ZdgZy)a†  
This module provides a newnext() function in Python 2 that mimics the
behaviour of ``next()`` in Python 3, falling back to Python 2's behaviour for
compatibility if this fails.

``newnext(iterator)`` calls the iterator's ``__next__()`` method if it exists. If this
doesn't exist, it falls back to calling a ``next()`` method.

For example:

    >>> class Odds(object):
    ...     def __init__(self, start=1):
    ...         self.value = start - 2
    ...     def __next__(self):                 # note the Py3 interface
    ...         self.value += 2
    ...         return self.value
    ...     def __iter__(self):
    ...         return self
    ...
    >>> iterator = Odds()
    >>> next(iterator)
    1
    >>> next(iterator)
    3

If you are defining your own custom iterator class as above, it is preferable
to explicitly decorate the class with the @implements_iterator decorator from
``future.utils`` as follows:

    >>> @implements_iterator
    ... class Odds(object):
    ...     # etc
    ...     pass

This next() function is primarily for consuming iterators defined in Python 3
code elsewhere that we would like to run on Python 2 or 3.
c                 ó   — 	 	 | j                  «       S # t        $ rO 	 | j                  «       cY S # t        $ r/ t        dj	                  | j
                  j                  «      «      ‚w xY ww xY w# t        $ r}|t        u r|‚|cY d}~S d}~ww xY w)z¸
    next(iterator[, default])

    Return the next item from the iterator. If default is given and the iterator
    is exhausted, it is returned instead of raising StopIteration.
    z'{0}' object is not an iteratorN)	Ú__next__ÚAttributeErrorÚnextÚ	TypeErrorÚformatÚ	__class__Ú__name__ÚStopIterationÚ	_SENTINEL)ÚiteratorÚdefaultÚes      úN/var/www/html/GAP/venv/lib/python3.12/site-packages/future/builtins/newnext.pyÚnewnextr   +   s    € ðð	IØ×$Ñ$Ó&Ð&øÜò 	IðIØ—}‘}“Ò&øÜ!ò IÜÐ A× HÑ HØ+3×+=Ñ+=×+FÑ+Fó!Hó Ið IðIúð	Iûô ò Ø”iÑØˆGà�Nûð	ús@   ƒ “	A+�/¬A+­A. ¯8A'Á'A+Á+A. Á.	BÁ7BÂBÂBr   N)Ú__doc__r   Ú_builtin_nextÚobjectr   r   Ú__all__© ó    r   ú<module>r      s*   ðñ$ðL €á‹H€	à'ó ð6 ˆ+�r   