%PDF- %PDF-
Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/future/builtins/ |
Current File : //proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/future/builtins/iterators.pyo |
� �A�[c @` s� d Z d d l m Z m Z m Z d d l Z d d l m Z e j s� e j Z e j Z d d l m Z e j Z d d d d g Z n6 d d l Z e j Z e j Z e j Z e j Z g Z d S( s� This module is designed to be used as follows:: from future.builtins.iterators import * And then, for example:: for i in range(10**15): pass for (a, b) in zip(range(10**15), range(-10**15, 0)): pass Note that this is standard Python 3 code, plus some imports that do nothing on Python 3. The iterators this brings in are:: - ``range`` - ``filter`` - ``map`` - ``zip`` On Python 2, ``range`` is a pure-Python backport of Python 3's ``range`` iterator with slicing support. The other iterators (``filter``, ``map``, ``zip``) are from the ``itertools`` module on Python 2. On Python 3 these are available in the module namespace but not exported for * imports via __all__ (zero no namespace pollution). Note that these are also available in the standard library ``future_builtins`` module on Python 2 -- but not Python 3, so using the standard library version is not portable, nor anywhere near complete. i ( t divisiont absolute_importt print_functionN( t utils( t newranget filtert mapt ranget zip( t __doc__t __future__R R R t itertoolst futureR t PY3t ifilterR t imapR t future.typesR R t izipR t __all__t builtins( ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/future/builtins/iterators.pyt <module>! s