|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/mx/Stack/ |
Upload File : |
mς ώΤ5;c @ s d k Z d f d YZ d S( Nt UserStackc B sP t Z d Z d Z d Z d Z d Z d Z d Z d Z RS( Nc C s f | _ d S( N( t selft stack( R ( ( t6 /usr/lib/python2.4/site-packages/mx/Stack/UserStack.pyt __init__ s c C s | | i f | _ d S( N( t xR R ( R R ( ( R t push s c C s | i \ } | _ | S( N( R R R ( R R ( ( R t pop s c C s t | i d j S( Ni ( t lenR R ( R ( ( R t not_empty s c C s | i d S( Ni ( R R ( R ( ( R t top s c C sB d } | i } x, t | d j o | d } | d } q W| S( Ni i ( t iR R t sR ( R R R ( ( R t __len__ s c C s_ g } | i } x9 t | d j o% | i t | d | d } q Wd t i | d S( Ni i s <UserStack [%s]>s , ( t lR R R R t appendt reprt stringt join( R R R ( ( R t __repr__# s c C sS g } | i } x3 t | d j o | i | d | d } q Wd t | S( Ni i R ( R R R R R R R ( R R R ( ( R t __str__, s ( t __name__t __module__R R R R R R R R ( ( ( R R s ( R R ( R R ( ( R t ? s