/usr/local/lib/python3.9/site-packages/future/builtins/__pycache__
NameSizeModeActions
disabled.cpython-39.pyc23210644editdlrm
iterators.cpython-39.pyc14980644editdlrm
misc.cpython-39.pyc30490644editdlrm
newnext.cpython-39.pyc20160644editdlrm
newround.cpython-39.pyc27860644editdlrm
newsuper.cpython-39.pyc30430644editdlrm
new_min_max.cpython-39.pyc15620644editdlrm
__init__.cpython-39.pyc12260644editdlrm
Edit: /usr/local/lib/python3.9/site-packages/future/builtins/__pycache__/newnext.cpython-39.pyc (2016B)
a ^Eg@s$dZeZeZefddZdgZdS)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 CszZz |WWStyVz|WYWStyPtd|jjYn0Yn0WnBty}z*|turx|n|WYd}~SWYd}~n d}~00dS)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__AttributeErrornext TypeErrorformat __class____name__ StopIteration _SENTINEL)iteratordefaulter A/usr/local/lib/python3.9/site-packages/future/builtins/newnext.pynewnext+s    rN)__doc__rZ _builtin_nextobjectr r__all__r r r rs&