Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
File Manager
/
ALFA_DATA
/
alfasymlink
/
root
/
lib
/
python2.7
/
site-packages
/
future
/
types
:
newrange.pyc
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
� ,�]c @@ s� d Z d d l m Z d d l m Z e rE d d l m Z m Z n d d l m Z m Z d d l m Z d d l m Z e Z d e f d � � YZ d e f d � � YZ d g Z d S( sw Nearly identical to xrange.py, by Dan Crosta, from https://github.com/dcrosta/xrange.git This is included here in the ``future`` package rather than pointed to as a dependency because there is no package for ``xrange`` on PyPI. It is also tweaked to appear like a regular Python 3 ``range`` object rather than a Python 2 xrange. From Dan Crosta's README: "A pure-Python implementation of Python 2.7's xrange built-in, with some features backported from the Python 3.x range built-in (which replaced xrange) in that version." Read more at https://late.am/post/2012/06/18/what-the-heck-is-an-xrange i ( t absolute_import( t PY2( t Sequencet Iterator( t islice( t countt newrangec B@ s� e Z d Z d � Z e d � � Z e d � � Z e d � � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� Pure-Python backport of Python 3's range object. See `the CPython documentation for details: <http://docs.python.org/py3k/library/functions.html#range>`_ c G@ sb t | � d k r- d | d d } } } na t | � d k r^ | d | d d } } } n0 t | � d k r� | \ } } } n t d � � y* t | � t | � t | � } } } Wn t k r� t d � � n X| d k r� t d � � n- | d k rt | | � } n t | | � } | | _ | | _ | | _ | | | t | | | � | _ d S( Ni i i i s"