$14 GRAYBYTE WORDPRESS FILE MANAGER $72

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/future/builtins/__pycache__/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/future/builtins/__pycache__//newnext.cpython-37.pyc
B

�A�[��@s$dZeZe�Zefdd�ZdgZdS)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.
cCs�yRy|��Stk
rNy|��Stk
rHtd�|jj���YnXYnXWn4tk
r�}z|tkrr|�n|SWdd}~XYnXdS)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�e�r
�H/opt/alt/python37/lib/python3.7/site-packages/future/builtins/newnext.py�newnext+srN)�__doc__rZ
_builtin_next�objectr	r�__all__r
r
r
r�<module>%s


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.10 PM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
1.201 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
__init__.cpython-37.pyc
1.201 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
disabled.cpython-37.opt-1.pyc
2.293 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
disabled.cpython-37.pyc
2.293 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
iterators.cpython-37.opt-1.pyc
1.468 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
iterators.cpython-37.pyc
1.468 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
misc.cpython-37.opt-1.pyc
2.708 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
misc.cpython-37.pyc
2.708 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newnext.cpython-37.opt-1.pyc
1.944 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newnext.cpython-37.pyc
1.944 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newround.cpython-37.opt-1.pyc
2.698 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newround.cpython-37.pyc
2.698 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newsuper.cpython-37.opt-1.pyc
2.773 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newsuper.cpython-37.pyc
2.773 KB
14 Nov 2023 12.35 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF