GRAYBYTE WORDPRESS FILE MANAGER1137

Server IP : 162.254.39.133 / Your IP : 216.73.216.176
System : Linux premium287.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
PHP Version : 8.1.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/lib64/python2.7/Demo/classes/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib64/python2.7/Demo/classes//Range.pyo
�
��^c@sNdZd�Zd�Zddd��YZd�ZedkrJe�ndS(	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__ .

cCs�y�t|�dkr,dt|d�dfSt|�dkr_t|d�t|d�dfSt|�dkr�|ddkr�td��ntd�|D��Stdt|���Wntk
r�td��nXd	S(
sgTake list of arguments and extract/create proper start, stop, and step
    values and return in a tupleiiiisstep argument must not be zerocss|]}t|�VqdS(N(tint(t.0tx((s*/usr/lib64/python2.7/Demo/classes/Range.pys	<genexpr>ss$range() accepts 1-3 arguments, givensArange() arguments must be numbers or strings representing numbersN(tlenRt
ValueErrorttuplet	TypeError(targlist((s*/usr/lib64/python2.7/Demo/classes/Range.pyt
handleargss!
cgsAt|�\}}}|}x||kr<|V||7}qWdS(s,Function to implement 'range' as a generatorN(R(tatstarttstoptsteptvalue((s*/usr/lib64/python2.7/Demo/classes/Range.pytgenranges
toldrangecBs2eZdZd�Zd�Zd�Zd�ZRS(sClass implementing a range object.
    To the user the instances feel like immutable sequences
    (and you can't concatenate or slice them)

    Done using the old way (pre-iterators; __len__ and __getitem__) to have an
    object be used by a 'for' loop.

    cGsEt|�\|_|_|_td|j|j|j�|_dS(s� Initialize start, stop, and step values along with calculating the
        nubmer of values (what __len__ will return) in the rangeiN(RR
RRtmaxR(tselfR	((s*/usr/lib64/python2.7/Demo/classes/Range.pyt__init__,scCsd|j|j|jfS(s-implement repr(x) which is also used by printsrange(%r, %r, %r)(R
RR(R((s*/usr/lib64/python2.7/Demo/classes/Range.pyt__repr__2scCs|jS(simplement len(x)(R(R((s*/usr/lib64/python2.7/Demo/classes/Range.pyt__len__6scCs>d|ko|jknr1|j|j|Std�dS(simplement x[i]isrange[i] index out of rangeN(RR
Rt
IndexError(Rti((s*/usr/lib64/python2.7/Demo/classes/Range.pyt__getitem__:s(t__name__t
__module__t__doc__RRRR(((s*/usr/lib64/python2.7/Demo/classes/Range.pyR"s
			c
Cs9ddl}ddl}|jddd�}ttddd��}ttddd��}||ksu||kr�td|||f��ndGH|j�}xtd�D]}q�W|j�}xtd�D]}q�W|j�}x|jd�D]}q�W|j�}	||GdGH||Gd	GH|	|Gd
GHdS(Ni����iidisEerror in implementation:
correct   = %s
old-style = %s
generator = %ssTimings for range(1000):i�ssec (old-style class)ssec (generator)ssec (built-in)(ttimet__builtin__trangetlistRRt	Exception(
RRtcorrect_resulttoldrange_resulttgenrange_resulttt1Rtt2tt3tt4((s*/usr/lib64/python2.7/Demo/classes/Range.pyttestBs*

t__main__N((RRRRR'R(((s*/usr/lib64/python2.7/Demo/classes/Range.pyt<module>s		 	

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 15 2024 10:33:33
root / root
0755
Complex.py
9.721 KB
April 19 2020 21:13:39
root / root
0644
Complex.pyc
9.787 KB
April 10 2024 04:58:46
root / root
0644
Complex.pyo
9.787 KB
April 10 2024 04:58:46
root / root
0644
Dates.py
7.638 KB
April 19 2020 21:13:39
root / root
0644
Dates.pyc
7.162 KB
April 10 2024 04:58:46
root / root
0644
Dates.pyo
7.162 KB
April 10 2024 04:58:46
root / root
0644
Dbm.py
1.537 KB
April 19 2020 21:13:39
root / root
0644
Dbm.pyc
2.461 KB
April 10 2024 04:58:46
root / root
0644
Dbm.pyo
2.461 KB
April 10 2024 04:58:46
root / root
0644
README
0.51 KB
April 19 2020 21:13:39
root / root
0644
Range.py
3.053 KB
April 19 2020 21:13:39
root / root
0644
Range.pyc
3.995 KB
April 10 2024 04:58:46
root / root
0644
Range.pyo
3.995 KB
April 10 2024 04:58:46
root / root
0644
Rev.py
2.004 KB
April 19 2020 21:13:39
root / root
0644
Rev.pyc
2.798 KB
April 10 2024 04:58:46
root / root
0644
Rev.pyo
2.798 KB
April 10 2024 04:58:46
root / root
0644
Vec.py
1.325 KB
April 19 2020 21:13:39
root / root
0644
Vec.pyc
2.754 KB
April 10 2024 04:58:46
root / root
0644
Vec.pyo
2.754 KB
April 10 2024 04:58:46
root / root
0644
bitvec.py
10.249 KB
April 19 2020 21:13:39
root / root
0644
bitvec.pyc
10.052 KB
April 10 2024 04:58:46
root / root
0644
bitvec.pyo
10.052 KB
April 10 2024 04:58:46
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF