SILENT KILLERPanel

Current Path: > > usr > lib64 > python2.7 > Demo > metaclasses > >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/lib64/python2.7/Demo/metaclasses//

NameTypeSizeLast ModifiedActions
Eiffel.py File 3468 bytes April 19 2020 21:13:39.
Eiffel.pyc File 4632 bytes April 10 2024 04:58:46.
Eiffel.pyo File 4530 bytes April 10 2024 04:58:44.
Enum.py File 4419 bytes April 19 2020 21:13:39.
Enum.pyc File 6179 bytes April 10 2024 04:58:46.
Enum.pyo File 6179 bytes April 10 2024 04:58:46.
Meta.py File 2933 bytes April 19 2020 21:13:39.
Meta.pyc File 4579 bytes April 10 2024 04:58:46.
Meta.pyo File 4579 bytes April 10 2024 04:58:46.
Simple.py File 1192 bytes April 19 2020 21:13:39.
Simple.pyc File 2746 bytes April 10 2024 04:58:46.
Simple.pyo File 2746 bytes April 10 2024 04:58:46.
Synch.py File 7938 bytes April 19 2020 21:13:39.
Synch.pyc File 8462 bytes April 10 2024 04:58:46.
Synch.pyo File 8314 bytes April 10 2024 04:58:44.
Trace.py File 4133 bytes April 19 2020 21:13:39.
Trace.pyc File 6173 bytes April 10 2024 04:58:46.
Trace.pyo File 6173 bytes April 10 2024 04:58:46.
index.html File 20573 bytes April 19 2020 21:13:39.
meta-vladimir.txt File 11527 bytes April 19 2020 21:13:39.

Reading File: //usr/lib64/python2.7/Demo/metaclasses///Enum.pyc

�
��^c@smdZddlZdd
d��YZddd��YZeddi�Zd�Zed	krie�ndS(
sCEnumeration metaclass.

XXX This is very much a work in progress.

i����Nt
EnumMetaClasscBs)eZdZd�Zd�Zd�ZRS(shMetaclass for enumeration.

    To define your own enumeration, do something like

    class Color(Enum):
        red = 1
        green = 2
        blue = 3

    Now, Color.red, Color.green and Color.blue behave totally
    different: they are enumerated values, not integers.

    Enumerations cannot be instantiated; however they can be
    subclassed.

    cCs�x)|D]!}|jtk	rtd�qqWtd�|�}||_||_i|_x3|j�D]%\}}t|||�|j|<qfWdS(s�Constructor -- create an enumeration.

        Called at the end of the class statement.  The arguments are
        the name of the new class, a tuple containing the base
        classes, and a dictionary containing everything that was
        entered in the class' namespace during execution of the class
        statement.  In the above example, it would be {'red': 1,
        'green': 2, 'blue': 3}.

        s*Enumeration base class must be enumerationcSs
|tk	S(N(tEnum(tx((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt<lambda>)tN(	t	__class__Rt	TypeErrortfiltert__name__t	__bases__t_EnumMetaClass__dicttitemstEnumInstance(tselftnametbasestdicttbasetkeytvalue((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt__init__s
			cCs�|dkr|jj�Sy|j|SWnMtk
rwx=|jD].}yt||�SWqBtk
roqBqBXqBWnXt|�dS(s�Return an enumeration value.

        For example, Color.red returns the value corresponding to red.

        XXX Perhaps the values should be created in the constructor?

        This looks in the class dictionary and if it is not found
        there asks the base classes.

        The special attribute __members__ returns the list of names
        defined in this class (it does not merge in the names defined
        in base classes).

        t__members__N(R
tkeystKeyErrorR	tgetattrtAttributeError(R
RR((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt__getattr__0s


cCs�|j}|jrB|dtjtd�|j�d�d}n|jr�g}x:|jj�D])\}}|jd|t|�f�qaWd|tj|d�f}n|S(Nt(cSs|jS(N(R(R((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyRPRs, t)s%s: %ss%s: {%s}(	RR	tstringtjointmapR
Rtappendtint(R
tstlistRR((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt__repr__Ms		0	!(Rt
__module__t__doc__RRR$(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyR	s		RcBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s
Class to represent an enumeration value.

    EnumInstance('Color', 'red', 12) prints as 'Color.red' and behaves
    like the integer 12 when compared, but doesn't support arithmetic.

    XXX Should it record the actual enumeration rather than just its
    name?

    cCs||_||_||_dS(N(t_EnumInstance__classnamet_EnumInstance__enumnamet_EnumInstance__value(R
t	classnametenumnameR((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyRes		cCs|jS(N(R)(R
((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt__int__jscCsd|j|j|jfS(NsEnumInstance(%r, %r, %r)(R'R(R)(R
((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyR$ms	cCsd|j|jfS(Ns%s.%s(R'R((R
((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt__str__rscCst|jt|��S(N(tcmpR)R!(R
tother((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt__cmp__us(RR%R&RR,R$R-R0(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyRZs					RcCs�dtfd��Y}|jGHt|�GH|j|jkGH|j|jkGH|jdkGH|jdkGHd|fd��Y}|jGH|jGH|j|jkGHdtfd��Y}d	||fd
��Y}|jGH|jGH|GH|GH|GH|GHdS(NtColorcBseZdZdZdZRS(iii(RR%tredtgreentblue(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyR1�siit
ExtendedColorcBs&eZdZdZdZdZdZRS(iiiii(RR%twhitetorangetyellowtpurpletblack(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyR5�s
t
OtherColorcBseZdZdZRS(ii(RR%R6R4(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyR;�stMergedColorcBseZRS((RR%(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyR<�s(RR2tdirR4R7R6(R1R5R;R<((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt_test~s&t__main__((((R&RRRRR>R(((s-/usr/lib64/python2.7/Demo/metaclasses/Enum.pyt<module>sQ!	*

SILENT KILLER Tool