shell bypass 403

UnknownSec Shell

: /lib64/python2.7/Demo/metaclasses/ [ drwxr-xr-x ]

name : Synch.pyo
�
��^c@s�dZddlZddd��YZd�ZddlmZmZmZdefd��YZd	efd
��YZ	defd��YZ
e
d
di�Zd�Ze
dkr�e�e�ndS(s`Synchronization metaclass.

This metaclass  makes it possible to declare synchronized methods.

i����NtLockcBs,eZdZd�Zdd�Zd�ZRS(s�Reentrant lock.

    This is a mutex-like object which can be acquired by the same
    thread more than once.  It keeps a reference count of the number
    of times it has been acquired by the same thread.  Each acquire()
    call must be matched by a release() call and only the last
    release() call actually releases the lock for acquisition by
    another thread.

    The implementation uses two locks internally:

    __mutex is a short term lock used to protect the instance variables
    __wait is the lock for which other threads wait

    A thread intending to acquire both locks should acquire __wait
    first.

   The implementation uses two other instance variables, protected by
   locking __mutex:

    __tid is the thread ID of the thread that currently has the lock
    __count is the number of times the current thread has acquired it

    When the lock is released, __tid is None and __count is zero.

    cCs4tj�|_tj�|_d|_d|_dS(s0Constructor.  Initialize all instance variables.iN(tthreadt
allocate_lockt_Lock__mutext_Lock__waittNonet
_Lock__tidt_Lock__count(tself((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyt__init__*s	icCs�|jj�z-|jtj�kr9|jd|_dSWd|jj�X|jj|�}|ro|rodSz-|jj�tj�|_d|_dSWd|jj�XdS(s}Acquire the lock.

        If the optional flag argument is false, returns immediately
        when it cannot acquire the __wait lock without blocking (it
        may still block for a little while in order to acquire the
        __mutex lock).

        The return value is only relevant when the flag argument is
        false; it is 1 if the lock is acquired, 0 if not.

        iNi(RtacquireRRt	get_identRtreleaseR(Rtflagtlocked((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR
1s

	cCs^|jj�z<|jd|_|jdkrHd|_|jj�nWd|jj�XdS(s�Release the lock.

        If this thread doesn't currently have the lock, an assertion
        error is raised.

        Only allow another thread to acquire the lock when the count
        reaches zero after decrementing it.

        iiN(RR
RRRRR(R((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyRQs

	(t__name__t
__module__t__doc__R	R
R(((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR
s	 cCs�g}|d�}||d�}t�}|j�||�|j�|j�tj||f�tj|||f�tj||f�tj||f�|j�ddl}x.t|�dkr�t|�GH|jd�q�Wt|�GHdS(NcSs3|j�dtj�G|j�|jd�dS(Nsf2 running in thread %d
i(R
RRRtappend(tlocktdone((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pytf2ks

cSsE|j�dtj�Gz||�Wd|j�X|jd�dS(Nsf1 running in thread %d
i(R
RRRR(RRR((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pytf1qs
i����i	g����MbP?(RR
RRtstart_new_threadttimetlentsleep(RRRRR((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyt	_testLockgs$		




(t	MetaClasst
MetaHelpertMetaMethodWrappertLockingMethodWrappercBseZd�ZRS(cOs�|jd dkrC|jddkrCt|j|jf||�S|jjj�z!t|j|jf||�SWd|jjj�XdS(Nit_(Rtapplytfunctinstt__lock__R
R(Rtargstkw((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyt__call__�s&!(RRR'(((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR�st
LockingHelpercBseZeZd�ZRS(cCs tj||�t�|_dS(N(Rt__helperinit__RR$(Rtformalclass((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR)�s(RRRt__methodwrapper__R)(((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR(�stLockingMetaClasscBseZeZRS((RRR(t
__helper__(((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR,�stLockingcCs�dtfd��Y}dd�}dd�}tj�}|j�tj�}|j�|d�}d}tj||||f�tj||||f�|j�dGH|j�dGHd	Gt|j�GHdS(
NtBuffercBs#eZd�Zd�Zd�ZRS(cSs0||_dg|j|_d|_|_dS(Ni(tsizeRtbuffertfirsttlast(Rtinitialsize((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR	�s	cSsI|jd|j|jkrH||j|j<|jd|j|_dSdG|jGHd|j|j|jfGH|j|jkr�|j|j|j!}n|j|j|j|j }dG|GH|dg|jd|_d|_|jd|_|jd|_dG|jGHdG|jGHd|j|j|jfGH|j|�dS(	Nisbuffer =s first = %d, last = %d, size = %dstemp =iisBuffer size doubled tosnew buffer =(R3R0R2R1Rtput(Rtitemttemp((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR5�s(		cSsF|j|jkrt�n|j|j}|jd|j|_|S(Ni(R2R3tEOFErrorR1R0(RR6((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pytget�s
	(RRR	R5R9(((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyR/�s		i�cSs`ddl}d}x0||krDdG|GH|j|�|d}qWdG|GdGH|j�dS(Ni����iR5isProducer: done producingtitems(RR5R(R1twaittnRti((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pytproducer�s	

cSs�ddl}d}d}x�||kr�yK|j�}||krXtd||f�ndG|GH|d}d}Wqtk
r�|j|�|d}qXqWdG|Gd	GH|j�dS(
Ni����ig����MbP?sget() returned %s, expected %stgotiisConsumer: done consumingR:(RR9tAssertionErrorR8RR(R1R;R<RR=ttouttx((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pytconsumer�s"	




is
Producer donesAll donesbuffer size ==(R.RRR
RRR1(R/R>RCtpwaittcwaitR1R<((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyt_test�s (




t__main__(((RRRRtMetaRRRRR(R,R.RFR(((s./usr/lib64/python2.7/Demo/metaclasses/Synch.pyt<module>sZ	+
	U

© 2025 UnknownSec
Web Design for Beginners | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
Web Design for Beginners

Web Design for Beginners

in Design
Created by Linda Anderson
+2
5 Users are following this upcoming course
Course Published
This course was published already and you can check the main course
Course
Web Design for Beginners
in Design
4.25
1:45 Hours
8 Jul 2021
₹11.80

What you will learn?

Create any website layout you can imagine

Support any device size with Responsive (mobile-friendly) Design

Add tasteful animations and effects with CSS3

Course description

You can launch a new career in web development today by learning HTML & CSS. You don't need a computer science degree or expensive software. All you need is a computer, a bit of time, a lot of determination, and a teacher you trust. I've taught HTML and CSS to countless coworkers and held training sessions for fortune 100 companies. I am that teacher you can trust. 


Don't limit yourself by creating websites with some cheesy “site-builder" tool. This course teaches you how to take 100% control over your webpages by using the same concepts that every professional website is created with.


This course does not assume any prior experience. We start at square one and learn together bit by bit. By the end of the course you will have created (by hand) a website that looks great on phones, tablets, laptops, and desktops alike.


In the summer of 2020 the course has received a new section where we push our website live up onto the web using the free GitHub Pages service; this means you'll be able to share a link to what you've created with your friends, family, colleagues and the world!

Requirements

No prerequisite knowledge required

No special software required

Comments (0)

Report course

Please describe about the report short and clearly.

Share

Share course with your friends