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_numbers.pyc

³ò
h”Rc@sIddkTddkZddkZddkZd„ZeeedƒƒƒZe	e
eegZ
eeeeegZeegZyeeWnej
onXe
ieƒeieƒee
ŒZeeŒZdeifd„ƒYZddklZdefd	„ƒYZdd
„Z d„Z!e"djoei#ƒndS(
iÿÿÿÿ(t*Nc	Gsäg}x×|D]Ï}|i}ti|ƒ}ti|dd| ƒd}ti|dd| ƒd}ti|ddd| ƒd}ti|ddd| ƒd}|it||||ƒt||||ƒfƒq
W|S(Nti isÿss€(t_type_tstructtcalcsizetunpacktappendtmintmax(	ttypestresulttttfmttsizetatbtctd((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pytvalid_rangess	""5itNumberTestCasecBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(cCs3x,tttD]}|i|ƒidƒqWdS(Ni(tsigned_typestunsigned_typestfloat_typestfailUnlessEqualtvalue(tselfR((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_default_init-scCs\xUtttƒD]D\}\}}|i||ƒi|ƒ|i||ƒi|ƒqWdS(N(tzipRtunsigned_rangesRR(RRtlth((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_unsigned_values2scCs\xUtttƒD]D\}\}}|i||ƒi|ƒ|i||ƒi|ƒqWdS(N(RRt
signed_rangesRR(RRRR((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_signed_values9scCsCx<tttD],}|it|dƒ|it|dƒqWdS(Nt(RRRtassertRaisest	TypeErrortNone(RR((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_typeerror?scCs<x5tttD]%}|itt|idƒƒƒqWdS(Ni(RRRRtArgTypettypet
from_param(RR((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_from_paramMscCsBx;tttD]+}t|ƒƒ}|itt|ƒƒqWdS(N(RRRtbyrefRR'R((RRtparm((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt
test_byrefSscCs˜dtfd„ƒY}|ƒ}xrtD]j}|i|dƒidƒ|i|dƒidƒ|i|dƒidƒ|i||ƒidƒq&WdS(Nt	FloatLikecBseZd„ZRS(cSsdS(Ng@((R((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt	__float__^s(t__name__t
__module__R/(((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyR.]sg@il(tobjectRRR(RR.tfR((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_floatsZs	cCs–dtfd„ƒY}|ƒ}dtfd„ƒY}|ƒ}xQttD]E}|it|dƒ|it||ƒ|i||ƒidƒqIWdS(NR.cBseZd„ZRS(cSsdS(Ng@((R((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyR/is(R0R1R/(((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyR.hstIntLikecBseZd„ZRS(cSsdS(Ni((R((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt__int__ms(R0R1R6(((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyR5lsg…ëQ¸	@i(R2RRR#R$RR(RR.R3R5tiR((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt
test_integersgs		cCs^xWtttD]G}ti|iƒ}|it|ƒ|ƒ|it|ƒƒ|ƒqWdS(N(RRRRRRRtsizeof(RRR
((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt
test_sizesws
cCsx†tttD]v}|i}tid|ƒti|ƒ}|i|t|ƒf||fƒ|i|t|ƒƒf||fƒqWdS(Nsc%c(RRRRRRRt	alignment(RRtcodetalign((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_alignmentss	 
c	CsÏddkl}x¸ttD]¬}y||iƒWntj
o
qnX||idgƒ}|i|iƒdƒ}|i|i|dƒ|it	|ƒ|ƒd|d<|i|i|dƒqWdS(Niÿÿÿÿ(tarrayidii*(
R?RRRt
ValueErrortfrom_addresstbuffer_infoRRR((RR?RRtv((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_int_from_address‹s
cCs½ddkl}x¦tD]ž}||idgƒ}|i|iƒdƒ}|i|i|dƒ|it|ƒ|jƒd|d<|i|i|dƒ|it|ƒ|jƒqWdS(Niÿÿÿÿ(R?g…ëQ¸	@ig 4ž˜
ŠC(	R?RRRARBRRt
failUnlessR((RR?RRRC((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_float_from_address s
cCsddkl}ddkl}|ddƒ}|i|iƒdƒ}|i|i|dƒ|it|ƒ|jƒd|d<|i|i|dƒdS(Niÿÿÿÿ(tc_char(R?Rtxit?(	tctypesRGR?RARBRRRER((RRGR?RRC((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyttest_char_from_address«s
cCs|itttdƒƒdS(Ni*(R#R$tc_inttc_long(R((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt	test_init·s(R0R1RRR!R&R*R-R4R8R:R>RDRFRKRN(((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyR+s							
						(t_SimpleCDatatc_int_ScBseZdZgZRS(R7(R0R1Rt	__slots__(((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyRPÁsc	Csët|ƒ}ddkl}|dj	oY|ƒ}x@|D]8}||ƒ||ƒ||ƒ||ƒ||ƒq9W|ƒ}nG|ƒ}x1|D])}|ƒ|ƒ|ƒ|ƒ|ƒq’W|ƒ}d|||dd|fGHdS(Niÿÿÿÿ(tclocks
%15s: %.2f usg€„.Ai(trangettimeRRR%(	treptmsgtfunctargtitemsRRtstartR7tstop((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pytrun_testÅs,
	




		cCszddkl}d}t|dtƒt|dtƒt|d|ƒt|d|ƒt|dtƒt|d	tƒdS(
Niÿÿÿÿ(RLi@
sint()sint(999)sc_int()s
c_int(999)s	c_int_S()sc_int_S(999)(RJRLR\tintRP(RLtREP((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pyt
check_perfÕst__main__($RJtunittesttsysRRR(R+RLR'tc_ubytetc_ushorttc_uinttc_ulongRtc_bytetc_shortRMt
c_longlongRtc_doubletc_floatRtc_ulonglongt	NameErrorRRR tTestCaseRRORPR%R\R_R0tmain(((s4/usr/local/lib/python2.5/ctypes/test/test_numbers.pys<module>s.
	

•	


Man Man