Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
mx
/
Stack
/
mxStack
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/mx/Stack/mxStack/test.pyo
mς ώΤ5;c @ sG d k Z d k Td Z d e i j o x e q, Wn e d S( N( t *c C sρ t } t | GHt } x! t d D] } | i | q* Wx | o | i GqD Wt t d } x | o | i Gqo Wt t d } | i GH| i GHHd GHd GH| i t d d GH| i d GH| i d GH| i t d d } x | o | i | d } q Wd GHd f d Y} | } y | i | Wn t j o n Xt d ~ d GHt t d } x t d D] } q’Wx t d D] } qΉWd } x | D] } | d } qΠW~ Hd GHd S( Niθ s Pop many.s Push many.id s Resize.s Clear.s Non-zero testing.i i s Push many and exceptions.t Cc B s t Z d Z d Z RS( Nc C s# | d j o | d Sn t d S( Ni2 i ( t it IndexError( t selfR ( ( t9 /usr/lib/python2.4/site-packages/mx/Stack/mxStack/test.pyt __getitem__3 s c C s d S( Nid ( ( R ( ( R t __len__8 s ( t __name__t __module__R R ( ( ( R R 2 s s, push_many() does not handle errors correctlys Index access.s Works.( t Stackt st reprt rangeR t pusht popt StackFromSequencet as_tuplet as_listt push_manyt resizet clearR t lR t AssertionErrort x( R R R R R ( ( R t test s| s -mi ( t syst mx.StackR t argv( R R ( ( R t ? s V