| 
				Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /lib64/python2.7/Demo/classes/  | 
Upload File :  | 
�
V
�Qc           @   sN   d  Z  d �  Z d �  Z d d d �  �  YZ d �  Z e d k rJ e �  n  d S(	   s  Example of a generator: re-implement the built-in range function
without actually constructing the list of values.
OldStyleRange is coded in the way required to work in a 'for' loop before
iterators were introduced into the language; using __getitem__ and __len__ .
c         C   s�   y� t  |  � d k r, d t |  d � d f St  |  � d k r_ t |  d � t |  d � d f St  |  � d k r� |  d d k r� t d � � n  t d �  |  D� � St d t  |  � � � Wn t k
 r� t d � � n Xd	 S(
   sg   Take list of arguments and extract/create proper start, stop, and step
    values and return in a tuplei   i    i   i   s   step argument must not be zeroc         s   s   |  ] } t  | � Vq d  S(   N(   t   int(   t   .0t   x(    (    s*   /usr/lib64/python2.7/Demo/classes/Range.pys	   <genexpr>   s    s$   range() accepts 1-3 arguments, givensA   range() arguments must be numbers or strings representing numbersN(   t   lenR    t
   ValueErrort   tuplet	   TypeError(   t   arglist(    (    s*   /usr/lib64/python2.7/Demo/classes/Range.pyt
   handleargs   s    !
c          g   sA   t  |  � \ } } } | } x | | k  r<