ok

Mini Shell

Direktori : /usr/lib64/python2.7/Demo/metaclasses/
Upload File :
Current File : //usr/lib64/python2.7/Demo/metaclasses/Meta.pyc

�
��^c@s�dZddlZddd��YZdd
d��YZddd��YZed	di�Zd
�Zedkr|e�ndS(s?Generic metaclass.

XXX This is very much a work in progress.

i����NtMetaMethodWrappercBseZd�Zd�ZRS(cCs%||_||_|jj|_dS(N(tfunctinstt__name__(tselfRR((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt__init__s		cOst|j|jf||�S(N(tapplyRR(Rtargstkw((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt__call__s(Rt
__module__RR	(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyR	s	t
MetaHelpercBs eZeZd�Zd�ZRS(cCs
||_dS(N(t__formalclass__(Rtformalclass((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt__helperinit__scCs�y|jj|�}WnTtk
rly|jjd�}Wn ttfk
r^t|�nX|||�SXt|�tjkr�|S|j||�S(Nt__usergetattr__(Rt__getattr__tAttributeErrortKeyErrorttypettypestFunctionTypet__methodwrapper__(Rtnametrawtga((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyRs

(RR
RRRR(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyRs	t	MetaClasscBs>eZdZeZdZd�Zd�Zd�Zd�Z	RS(scA generic metaclass.

    This can be subclassed to implement various kinds of meta-behavior.

    icCs[y|d}Wntk
r!nX||d<|d=||_||_||_d|_dS(NRRi(RRt	__bases__t__realdict__t_MetaClass__inited(RRtbasestdictR((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyR4s

			cCsiy|j|SWnStk
rdx6|jD]+}y|j|�SWq)tk
rSq)Xq)Wt|�nXdS(N(RRRRR(RRtbase((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyRAs

cCs*|js||j|<n
||j|<dS(N(Rt__dict__R(RRtvalue((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt__setattr__Ls	cOs]|j�}|j|�y|jd�}Wntk
rHd�}nXt|||�|S(NRcSsdS(N(tNone(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt<lambda>Xt(t
__helper__RRRR(RRRRtinit((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyR	Rs


(
RR
t__doc__RR'RRRR#R	(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyR(s	
		tMetacCsidtfd��Y}|GH|�}|GH|jd�d|fd��Y}|�}|jGH|jGHdS(NtCcBseZd�Zd�ZRS(cWs
dG|GHdS(Ns__init__, args =((RR((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyRbscSsd|fGHdS(Nsm1(x=%r)((Rtx((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pytm1ds(RR
RR-(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyR+as	itDcBseZd�ZRS(cSs$|d dkrt|�nd|S(Nit__s
getattr:%s(R(RR((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyRks(RR
R(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyR.js(R*R-tfoot_foo(R+R,R.((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt_test`s	
	t__main__(((((R)RRRRR*R2R(((s-/usr/lib64/python2.7/Demo/metaclasses/Meta.pyt<module>s
5	

Zerion Mini Shell 1.0