?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
PK [[ Tools/Examples/Acquisition.pynu W+A import mx.Tools.NewBuiltins
class AcquisitionMixin:
""" Mixin class allowing implicit acquisition of attributes from
objects up a containment hierachy.
To enable this feature, an object 'b' contained in another
object 'a' must set the instance variable b.baseobj to
a. The search is done recursively until either an exception
is raised by the queried object or the object is found.
Attributes that strt with an underscore ('_') can not
be acquired. Be careful when acquiring methods: the method
will be executed in the baseobjects context, not the one
it is acquired into.
See the documentation of acquire() for details.
"""
baseobj = None # Base object ("containing" this object)
# Implicit acquisition
__getattr__ = acquire # Use the (new) builtin acquire() to implement
# the acquisition mechanism
def __init__(self,*args,**kw):
""" Create the object and call startup(*args,**kw)
- if you give a keyword 'baseobj' then its parameter
is used to set the baseobj for acquisition; the keyword
is then deleted from kw
"""
# Set baseobj for acquisition to work properly
baseobj = kw.get('baseobj',None)
if baseobj is not None:
self.baseobj = baseobj
del kw['baseobj']
# call startup()
apply(self.startup,args,kw)
def startup(self,*args,**kw):
""" Override this to init the instance.
"""
pass
class PythonAcquisitionMixin(AcquisitionMixin):
def __getattr__(self,name,
getattr=getattr,AttributeError=AttributeError):
if name[0] != '_':
return getattr(self.baseobj,name)
raise AttributeError,name
# Localize these here for speed
baseobj = AcquisitionMixin.baseobj
__init__ = AcquisitionMixin.__init__
startup = AcquisitionMixin.startup
def _test():
class C(AcquisitionMixin):
a = 2
x = 9
class D(AcquisitionMixin):
b = 3
class E(AcquisitionMixin):
c = 4
# Setup acquisition chain
c = C()
d = D(baseobj=c)
e = E(baseobj=d)
# Give implicit acquisition a go...
print c.a, d.a, e.a
print d.b, e.b
print e.c
d.a = 5
print c.a, d.a, e.a
c.b = 1
print c.b, d.b, e.b
print
# Performance comparism:
print 'Performance:'
print
import time
l = range(100000)
class C(AcquisitionMixin):
x = 9
class D(AcquisitionMixin):
y = 8
class E(AcquisitionMixin):
z = 7
# Setup acquisition chain
c = C()
d = D(baseobj=c)
e = E(baseobj=d)
t = time.time()
for i in l:
e.x
e.y
e.z
print 'AcquisitionMixin:',time.time() - t,'seconds'
class C(PythonAcquisitionMixin):
x = 9
class D(PythonAcquisitionMixin):
y = 8
class E(PythonAcquisitionMixin):
z = 7
# Setup acquisition chain
c = C()
d = D(baseobj=c)
e = E(baseobj=d)
t = time.time()
for i in l:
e.x
e.y
e.z
print 'PythonAcquisitionMixin:',time.time() - t,'seconds'
if __name__ == '__main__':
_test()
PK [[ Tools/Examples/__init__.pynu W+A PK [[7@ @ Tools/Doc/mxTools.pdfnu W+A %PDF-1.4
%
704 0 obj
<<
/Linearized 1
/O 708
/H [ 1523 665 ]
/L 491840
/E 279530
/N 25
/T 477641
>>
endobj
xref
704 24
0000000016 00000 n
0000000849 00000 n
0000001205 00000 n
0000001362 00000 n
0000002188 00000 n
0000002562 00000 n
0000002592 00000 n
0000003374 00000 n
0000003415 00000 n
0000003657 00000 n
0000004882 00000 n
0000004905 00000 n
0000005378 00000 n
0000005622 00000 n
0000005854 00000 n
0000006060 00000 n
0000022169 00000 n
0000033747 00000 n
0000036839 00000 n
0000037046 00000 n
0000037125 00000 n
0000039804 00000 n
0000001523 00000 n
0000002166 00000 n
trailer
<<
/Size 728
/Info 698 0 R
/Encrypt 706 0 R
/Root 705 0 R
/Prev 477630
/ID[]
>>
startxref
0
%%EOF
705 0 obj
<<
/Type /Catalog
/Pages 701 0 R
/Metadata 699 0 R
/Outlines 128 0 R
/OpenAction [ 708 0 R /XYZ null null null ]
/PageMode /UseNone
/PageLabels 697 0 R
/StructTreeRoot 707 0 R
/PieceInfo << /MarkedPDF << /LastModified (@ Yw)>> >>
/LastModified (@ Yw)
/MarkInfo << /Marked true /LetterspaceFlags 0 >>
>>
endobj
706 0 obj
<<
/Filter /Standard
/R 3
/O (U0['$r\(`D\n2u\\NbVK/~)
/U (5@YzK4a\rJ )
/P -12
/V 2
/Length 128
>>
endobj
707 0 obj
<<
/Type /StructTreeRoot
/RoleMap 142 0 R
/ClassMap 145 0 R
/K [ 583 0 R 584 0 R 585 0 R ]
/ParentTree 639 0 R
/ParentTreeNextKey 29
>>
endobj
726 0 obj
<< /S 566 /O 691 /L 707 /C 723 /Filter /FlateDecode /Length 727 0 R >>
stream
٣#@0RWq~-ϾYә^H8bu?./ṆҔeJRH7ՉUDi.Ra]נs[^z/J'f?hwʹVƐ3ċrbK`p"bMbG1XP5E/ymR,$&ȳE*%Us~6=dKiGU':p9$
cC2lE&@
`KԳK@R HC1wO6yTn4Fp" C VtZgѢ `:,sh^MQ" fR yU9iս;> /XObject << /Im1 725 0 R >>
/ExtGState << /GS2 723 0 R /GS3 722 0 R >> /Font << /TT3 710 0 R /TT4 715 0 R /TT5 718 0 R >>
/ProcSet [ /PDF /Text /ImageC ] >>
/Contents 713 0 R
/MediaBox [ 0 0 595 842 ]
/CropBox [ 0 0 595 842 ]
/Rotate 0
/StructParents 0
>>
endobj
709 0 obj
/DeviceGray
endobj
710 0 obj
<<
/Type /Font
/Subtype /TrueType
/FirstChar 32
/LastChar 233
/Widths [ 274 329 278 0 0 757 714 144 329 329 0 833 274 329 274 281 549 549
549 549 549 549 549 549 549 549 326 326 833 833 833 441 0 604 587
669 764 502 491 734 759 282 282 602 461 905 741 821 539 821 574
512 530 743 625 958 541 519 0 329 0 329 0 500 0 474 556 472 556
498 291 503 556 250 250 500 250 854 552 552 556 556 356 434 311
552 479 766 463 486 475 500 0 500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 833 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 498 ]
/Encoding /WinAnsiEncoding
/BaseFont /HDKIMA+ZapfHumanist601BT-Demi
/FontDescriptor 712 0 R
>>
endobj
711 0 obj
[
/ICCBased 724 0 R
]
endobj
712 0 obj
<<
/Type /FontDescriptor
/Ascent 962
/CapHeight 687
/Descent -272
/Flags 32
/FontBBox [ -167 -273 1106 963 ]
/FontName /HDKIMA+ZapfHumanist601BT-Demi
/ItalicAngle 0
/StemV 94.019
/XHeight 0
/FontFile2 719 0 R
>>
endobj
713 0 obj
<< /Filter /FlateDecode /Length 714 0 R >>
stream
Mm7/偯K!E-oXhO~&⩙6q*
ag͂#!$+h"Jvvu Hjx`W8Ɣgn~|/&8!GޯkBJ.EƸSTohM8t2K@Z٢%w+`vwȥWjܐXHwjsC2늼Ԑn;zˁ(VT(qBQ+i#;qU[_T'p8gĤl*[aU ^8uH_R&QuM98:oxUD=)vЂh4[ڼj^KPHH11ⴽ~d-wi(}&ӹsnPN[nn
JjŽڌX`u w*@Jդ-jɱxiaӁxYVZ~O;9T^?Ȣ~cd%@Px*JGd𱡡Qg~ՀZe
9 pKNRVJ Nnf*B1HtHQ
g1ј}1Fs2!t,CӼ~
i'^\xJ,o m#wp[,5gA6`9!Вpkqt_Yȼ8
G,8Ԝ^"\%2`RQ
`B6W2}̡n64rKcR2W&;f+C C|͟,N7Wq *$CЅ"?èٷuxGf\zU&?BXn\JY*#-?ma<u
P9|'wúGy r's2#]*WUhF
cbH:@v0j
endstream
endobj
714 0 obj
1145
endobj
715 0 obj
<<
/Type /Font
/Subtype /TrueType
/FirstChar 32
/LastChar 121
/Widths [ 274 0 0 0 0 0 0 0 0 0 0 0 0 0 274 0 0 549 549 549 549 549 549 549
549 0 0 0 0 0 0 0 0 608 597 660 0 515 502 743 0 329 0 0 476 891
740 828 587 0 613 544 549 731 0 971 573 547 0 0 0 0 0 0 0 516 0
484 604 535 0 514 593 291 0 0 299 891 593 567 0 0 382 427 338 592
0 0 472 478 ]
/Encoding /WinAnsiEncoding
/BaseFont /HDKIIN+ZapfHumanist601BT-Ultra
/FontDescriptor 716 0 R
>>
endobj
716 0 obj
<<
/Type /FontDescriptor
/Ascent 961
/CapHeight 687
/Descent -284
/Flags 32
/FontBBox [ -167 -284 1186 962 ]
/FontName /HDKIIN+ZapfHumanist601BT-Ultra
/ItalicAngle 0
/StemV 166.043
/XHeight 0
/FontFile2 720 0 R
>>
endobj
717 0 obj
<<
/Type /FontDescriptor
/Ascent 951
/CapHeight 0
/Descent -273
/Flags 96
/FontBBox [ -220 -274 1143 951 ]
/FontName /HDKIKO+ZapfHumanist601BT-UltraItalic
/ItalicAngle -15
/StemV 0
/FontFile2 721 0 R
>>
endobj
718 0 obj
<<
/Type /Font
/Subtype /TrueType
/FirstChar 32
/LastChar 32
/Widths [ 274 ]
/Encoding /WinAnsiEncoding
/BaseFont /HDKIKO+ZapfHumanist601BT-UltraItalic
/FontDescriptor 717 0 R
>>
endobj
719 0 obj
<< /Filter /FlateDecode /Length 16016 /Length1 23376 >>
stream
0/5h!\:PN7K8]6f1o/ `ysmj,rH IX0r-0Z߸6--Σzk k0aNuB@%e>X=
g0wEx}n7T lBv´JDŽѮJ_aZа۲i2r!מIolEWS<uȡe
2"TEƩF Q6Zw[le6Iu]Q疷NP?[%\퉭U}$[;@ѩs,utDo
O
67.;ƍUL&:
7^h|`y05A09VYlk_3T9\O!vVi6܄01):+c!o`g"B@_^e"nE1