config root man

Current Path : /usr/local/lib/python2.5/ctypes/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/ctypes/test/test_structures.pyo

³ò
h”Rc@s©ddkZddkTddklZdeifd„ƒYZdeifd„ƒYZdeifd	„ƒYZd
eifd„ƒYZe	djoei
ƒndS(
iÿÿÿÿN(t*(tcalcsizetSubclassesTestcBseZd„Zd„ZRS(cCsòdtfd„ƒY}d|fd„ƒY}d|fd„ƒY}|it|ƒttƒƒ|it|ƒttƒdƒ|it|ƒttƒƒ|i|idtfgƒ|i|id	tfgƒ|i|idtfgƒdS(
NtXcBseZdefgZRS(ta(t__name__t
__module__tc_intt_fields_(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRstYcBseZdefgZRS(tb(RRRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR	
stZcBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR
siRR
(t	StructuretfailUnlessEqualtsizeofRR(tselfRR	R((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyt
test_subclasss cCsHdtfd„ƒY}|it|ƒdƒdtfg|_d|fd„ƒY}|it|ƒt|ƒƒdtfg|_d|fd	„ƒY}|it|ƒttƒƒ|it|ƒttƒd
ƒ|it|ƒttƒƒ|i|idtfgƒ|i|idtfgƒ|i|idtfgƒdS(NRcBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRsiRR	cBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR	sR
RcBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR"si(RR
RRR(RRR	R((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_subclass_delayeds (RRRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRs	tStructureTestCasecBseZhed<ed<ed<ed<ed<ed<ed<e	d<e
d<ed	<ed
<e
d<ed<Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(tcR
tBthtHtitItltLtqtQtftdcsrxk|iiƒD]Z\}‰dtf‡fd†ƒY}|it|ƒ|ftd||fƒ|fƒqWdS(NRcs eZdefdˆfgZRS(txty(RRtc_charR((ttp(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR>s	sc%c0%c(tformatstitemsRR
RR(RtcodeR((R"s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_simple_structs<s
cslxe|iiƒD]T\}‰dtf‡fd†ƒY}|it|ƒ|ftd|ƒ|fƒqWdS(NRcs eZdefdˆfgZRS(RR (RRR!R((R"(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRFs	s%c(R#R$tUnionR
RR(RR%R((R"s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_unionsDs
csÀdtfd„ƒY‰|itˆƒtdƒƒ|itˆƒtdƒƒdtfd„ƒY‰|itˆƒtdƒƒ|itˆƒtdƒƒd	tf‡‡fd
†ƒY}|it|ƒttˆƒtˆƒƒƒ|it|ƒtdƒƒdtf‡‡fd
†ƒY}|it|ƒttˆƒtˆƒƒƒ|it|ƒtdƒƒdtf‡fd†ƒY}|it|ƒtˆƒƒ|it|ƒtdƒƒdS(NRcBseZdedfgZRS(Ri(RRR!R(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRMstst3sR	cBs$eZdedfdefgZRS(RiR (RRR!RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR	Rs
Rt3sitSIcs eZdˆfdˆfgZRS(RR
(RRR((R	R(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR,Xs	s3s0i 3si 0itIScs eZdˆfdˆfgZRS(R
R(RRR((R	R(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR-^s	s	3si 3s 0itXXcs eZdˆfdˆfgZRS(RR
(RRR((R(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR.es	s3s 3s 0s(RR
t	alignmentRRtmax(RR,R-R.((R	Rs7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_struct_alignmentLs++csØdtfd„ƒY‰dtfd„ƒY}|itˆƒt|ƒjo
djnƒ|itˆƒt|ƒjo
djnƒdtf‡fd†ƒY}|it|ƒdƒ|it|ƒdƒdS(	NRcBseZgZRS((RRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRosR	cBseZgZRS((RRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR	rsiiR.cs eZdˆfdˆfgZRS(RR
(RRR((R(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR.ys	(RR't
failUnlessR/RR
(RR	R.((Rs7/usr/local/lib/python2.5/ctypes/test/test_structures.pyt
test_emtpyks00cCs†dtfd„ƒY}|i|iidƒ|i|iittƒƒ|i|iittƒƒ|i|iittƒƒ|i	t
tft|iddƒ|i	t
tft|iddƒdt
fd„ƒY}|i|iidƒ|i|iittƒƒ|i|iidƒ|i|iittƒƒ|i	t
tft|iddƒ|i	t
tft|iddƒdS(NRcBs eZdefdefgZRS(RR (RRRR!R(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR‚s	itoffseti\tsizecBs eZdefdefgZRS(RR (RRRR!R(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRs	(RR
RR4R5RRR R!tassertRaisest	TypeErrortAttributeErrortsetattrR'(RR((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_fields€s"""cCs‡dtfd„ƒY}|it|ƒdƒ|i|iidƒdtfd„ƒY}|it|ƒdƒ|i|iidƒdtfd„ƒY}|it|ƒd	ƒ|i|iid
ƒddk}|idƒ}|id
ƒ|}dtfd„ƒY}|it|ƒ||ƒ|i|iitd|ƒƒhddgd<dd<}|it	t
tƒdtf|ƒdS(NRcBs&eZdefdefgZdZRS(RR
i(RRtc_bytet
c_longlongRt_pack_(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR¢s	i	icBs&eZdefdefgZdZRS(RR
i(RRR;R<RR=(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRªs	i
icBs&eZdefdefgZdZRS(RR
i(RRR;R<RR=(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR±s	iiiÿÿÿÿRtbqcBs&eZdefdefgZdZRS(RR
i(RRR;R<RR=(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR¼s	iRR
RR=(RR
(R
R(RR
RR
R4tstructRtminR6t
ValueErrorttype(RRR?t
longlong_sizetlonglong_alignR((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_packed¡s&cCs¤dtfd„ƒY}|it|dƒ|it|dƒ|it|ddƒ|i|ddƒidƒ|i|d	dƒid	ƒ|it|d
dƒdS(NtPersoncBs$eZdedfdefgZRS(tnameitage(RRR!RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRFËs
i*tasldkjaslkdjaslkdjtNametHIt12345it123456t1234567(RR6R7RAR
RG(RRF((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_initializersÊscCsvdtfd„ƒY}|ddƒ}|i|i|ifdƒ|ddddƒ}|i|i|ifdƒdS(	NtPOINTcBs eZdefdefgZRS(RR (RRRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRPÜsiiR R(ii(ii(RR
RR (RRPtpt((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_keyword_initializersÛs
cCs9dtfd„ƒY}|itt|ddd	gƒdS(
NRPcBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRPåsRRiR i(Ri(R i(RR6R7R9(RRP((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_invalid_field_typesäsc
Csydtfd„ƒY}|i|d	ƒiddddgƒ|i|d
ƒiddddgƒ|it|dƒdS(NtSomeIntscBseZdedfgZRS(Ri(RRRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRTêsiiiiii(ii(iiii(iiiii(RR
RR6tRuntimeError(RRT((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_intarray_fieldsés&&csšdtfd„ƒY‰dtf‡fd†ƒY}|dd	dƒ}|i|idƒ|i|iidƒ|i|iidƒ|i|idƒdS(
NtPhonecBs(eZdedfdedfgZRS(tareacodeitnumberi(RRR!R(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRWös
RFcs-eZdedfdˆfdefgZRS(RGitphoneRH(RRR!RR((RW(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRFús
	tSomeonet1234t5678i(R\R](RR
RGRZRXRYRH(RRFtp((RWs7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_nested_initializersôscCs¹ytWntj
odSnXdtfd„ƒY}|dƒ}|i|idƒ|i|dƒidƒ|i|dƒidƒ|i|dƒidƒ|it|dƒdS(	NtPersonWcBs$eZdedfdefgZRS(RGiRH(RRtc_wcharRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR`s
uSomeoneR[u
1234567890u12345678901u123456789012u
1234567890123(Rat	NameErrorRR
RGR6RA(RR`R^((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_structures_with_wchars	csôdtfd„ƒY‰dtf‡fd†ƒY}|i|ddƒ\}}|i|tƒtttƒo|i|dƒn|i|d	ƒ|i|ddƒ\}}|i|tƒtttƒo|i|d
ƒn|i|dƒdS(NRWcBs(eZdedfdedfgZRS(RXiRYi(RRR!R(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRWs
RFcs-eZdedfdˆfdefgZRS(RGiRZRH(RRR!RR((RW(s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRFs
	R[iisS(Phone) <type 'exceptions.TypeError'>: expected string or Unicode object, int foundsJ(Phone) exceptions.TypeError: expected string or Unicode object, int foundRR
Rs=(Phone) <type 'exceptions.ValueError'>: too many initializerss4(Phone) exceptions.ValueError: too many initializers(ii(RR
R(Rt
get_exceptR
RUt
issubclasst	Exceptiontobject(RRFtclstmsg((RWs7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_init_errorss			cGs=y||ŒWn(tj
o}|it|ƒfSnXdS(N(Rft	__class__tstr(Rtfunctargstdetail((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRd9scCsTdtfd„ƒY}|itdtƒƒ\}}|i||ftdfƒdS(NRcBseZdZRS(t	something(RRt
_abstract_(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRIssX()sabstract class(RRdtevaltlocalsR
R7(RRRhRi((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_abstract_classHscCsa|idtttƒƒjƒ|idtttƒƒjƒ|idtttƒƒjƒdS(Ntin_dlltfrom_address(R2tdirRBR(R((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_methodsOs( RRR!R;tc_ubytetc_shorttc_ushortRtc_uinttc_longtc_ulongR<tc_ulonglongtc_floattc_doubleR#R&R(R1R3R:RERORRRSRVR_RcRjRdRtRx(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR,s:
																!	)										tPointerMemberTestCasecBseZd„Zd„ZRS(cCs+dtfd„ƒY}|ƒ}tddddƒ|_g}tdƒD]}||i|qI~}|i|dddgƒd|id<g}tdƒD]}||i|q~}|i|dddgƒd|id<g}tdƒD]}||i|qñ~}|i|dddgƒdS(NtScBseZdeeƒfgZRS(tarray(RRtPOINTERRR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRƒ[siiii*i(RRR„trangeR
(RRƒR)t_[1]RR$t_[2]t_[3]((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttestYs	.
.
.cCsHdtfd„ƒY}|ƒ}d|_d|_|i|idƒdS(NRƒcBs&eZdefdeeƒfgZRS(RR^(RRRR…R(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRƒws	iNa¼(RRtNoneR^R
(RRƒR)((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_none_to_pointer_fieldsvs
			(RRRŠRŒ(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR‚Ws	tTestRecursiveStructurecBseZd„Zd„ZRS(cCsndtfd„ƒY}yd|fg|_Wn.tj
o"}|idt|ƒjƒnX|idƒdS(Nt	RecursivecBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyRŽ‚stnexts(Structure or union cannot contain itself(RRR8R2Rltfail(RRŽtdetails((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_contains_itselfs	cCs–dtfd„ƒY}dtfd„ƒY}d|fg|_yd|fg|_Wn.tj
o"}|idt|ƒjƒnX|idƒdS(	NtFirstcBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR“stSecondcBseZRS((RR(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR”‘stsecondtfirsts_fields_ is finalsAttributeError not raised(RRR8R2RlR(RR“R”R‘((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyttest_vice_versaŽs	(RRR’R—(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pyR€s	
t__main__(tunittesttctypesR?RtTestCaseRRR‚RRtmain(((s7/usr/local/lib/python2.5/ctypes/test/test_structures.pys<module>s
'ÿ,)


Man Man