hyb
2026-01-07 c7f60dc7e9a36596f0e0d1787bd0cca4e9b57bcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Ë
KñúhKãóÞ—ddlZddlmZddlZddlZddlmZddlm    Z    m
Z
m Z ejdej dejdiZejj!dej"ej$ej&g«d    „«Zejj!dej"ej$ej&g«d
„«Zejj!dej,ej.ej0g«d „«Zejj!d ej,ej.ej0g«d „«Zdd„Zejj!dej"ej$ej&g«d„«Zejj!dej,ej.ej0g«d„«Zd„ZGd„de«Zy)éN)ÚStringIO)ÚCommaDecimalPointLocale)ÚIS_MUSLÚassert_Ú assert_equalÚinfz-infÚnanÚtpc    óJ—dD]4}tt||««tt|««d|›¬«Œ6|d«jdkDr3tt|d««ttd««d|›¬«yd}tt|d««|d|›¬«y)    zÌ Check formatting.
 
        This is only for the str function, and only for simple types.
        The precision of np.float32 and np.longdouble aren't the same as the
        python float precision.
 
    ©rééÿÿÿÿg@Œµx¯DúFailed str formatting for type ©Úerr_msgç€à7yÃACéÚ1e16ú1e+16N)rÚstrÚfloatÚitemsize©r
ÚxÚrefs   úOH:\Change_password\venv_build\Lib\site-packages\numpy/_core/tests/test_print.pyÚtest_float_typesr sž€ðòEˆÜ”S™˜A›“Z¤¤U¨1£X£Ø>¸r¸dÐCö    EðEñ
ˆ$ƒx×ј1ÒÜ”S™˜D›“]¤C¬¨f« Ó$6Ø>¸r¸dÐCö    EðˆÜ”S™˜D›“] CØ>¸r¸dÐCö    Eócó¼—tjtj tjfD])}tt    ||««t
|d|›¬«Œ+y)zÙ Check formatting of nan & inf.
 
        This is only for the str function, and only for simple types.
        The precision of np.float32 and np.longdouble aren't the same as the
        python float precision.
 
    rrN)Únprr    rrÚ_REF)r
rs  rÚtest_nan_inf_floatr"#sM€ôf‰f”r—v‘vgœrŸv™vÐ &òEˆÜ”S™˜A›“Z¤ a¡Ø>¸r¸dÐCö    EñErc ó6—dD]ª}tt||««tt|««d|›¬«tt||dz««tt|dz««d|›¬«tt|||dzz««tt||dzz««d|›¬«Œ¬|d«jdkDr3tt|d««ttd««d|›¬«yd}tt|d««|d|›¬«y)    zÜCheck formatting of complex types.
 
        This is only for the str function, and only for simple types.
        The precision of np.float32 and np.longdouble aren't the same as the
        python float precision.
 
    r rryð?réú
(1e+16+0j)N)rrÚcomplexrrs   rÚtest_complex_typesr'1s€ðòEˆÜ”S™˜A›“Z¤¤W¨Q£Z£Ø>¸r¸dÐCõ    Eä”S™˜A ™F›“_¤c¬'°!°b±&«/Ó&:Ø>¸r¸dÐCõ    Eä”S™˜A  B¡™J›Ó(¬#¬g°a¸!¸b¹&±jÓ.AÓ*BØ>¸r¸dÐCö    Eð Eñ
ˆ$ƒx×ј1ÒÜ”S™˜D›“]¤C¬°« Ó$6Ø>¸r¸dÐCö    EðˆÜ”S™˜D›“] CØ>¸r¸dÐCö    ErÚdtypecóÞ—ittjd«d“tdtj«d“ttj d«d“tdtj «d“ttjd«d“tdtj«d“ttj d«d    “tdtj «d
“ttjd«d “tdtj«d “ttj d«d “tdtj «d “ttjd«d “tdtj«d“ttj d«d “tdtj «d“}|j    «D] \}}t t ||««|«Œ"y)z*Check inf/nan formatting of complex types.rz(inf+0j)Úinfjz    (-inf+0j)z-infjr ú(inf+1j)z(1+infj)ú    (-inf+1j)z(1-infj)z(nan+0j)Únanjú(nan+1j)z(1+nanj)N)r&r rr    Úitemsrr)r(ÚTESTSÚcÚss    rÚtest_complex_inf_nanr3Ks²€ð Ü”—‘˜Ó˜Jð 䐔2—6‘6Ó˜Fð ô    ”—‘˜Ó˜[ð ô    ”B—F‘F7Ó˜Wð     ô
    ”—‘˜Ó˜Jð  ô     ”2—6‘6Ó˜Jð  ô    ”—‘˜Ó˜[ð ô    ”B—F‘F7Ó˜Zð ô    ”—‘˜Ó˜Jð ô    ”2—6‘6Ó˜Fð ô    ”—‘˜Ó˜Zð ô    ”B—F‘F7Ó˜Vð ô    ”—‘˜Ó˜Jð ô    ”2—6‘6Ó˜Jð ô    ”—‘˜Ó˜Zð ô     ”B—F‘F7Ó˜Zð! €Eð$— ‘ “ ò'‰ˆˆ1Ü”S™˜q›“] AÕ&ñ'rcó^—t«}t«}tj}    |t_t||««|t_|r t|«n t|«|t_t    |j «|j «d|›¬«y#|t_wxYw)Nzprint failed for typer)rÚsysÚstdoutÚprintrÚgetvalue)rr
rÚfileÚfile_tpr6s      rÚ_test_redirected_printr;es€Ü ‹:€DÜ‹j€GÜ Z‰Z€Fð    ØŒŒ
Ü ‰b‹eŒ ØŒŒ
Ù Ü #Jä !ŒHàŒŒ
䐗‘“ '×"2Ñ"2Ó"4Ø0°°Ð5ö7øðŒ
ús ¦ABÂ B,cóB—dD]}tt|«|«Œtjtj tjfD]}tt|«|t
|«Œ!|d«j dkDr td|«yd}td||«y)ú"Check formatting when using print r rrrN)r;rr rr    r!rrs   rÚtest_float_type_printr>xsŠ€ðò-ˆÜœu Q›x¨Õ,ð-ôf‰f”r—v‘vgœrŸv™vÐ &ò6ˆÜœu Q›x¨¬T°!©WÕ5ð6ñ
ˆ$ƒx×ј1Òܘt RÕ(àˆÜ˜t R¨Õ-rcó¤—dD]}tt|«|«Œ|d«jdkDrttd«|«nd}ttd«||«tttjd«|d«tttj d«|d«tttj
d«|d«y    )
r=r rr$r%r r+r,r.N)r;r&rr rr    rs   rÚtest_complex_type_printr@ˆs¡€ð
ò/ˆÜœw q›z¨2Õ.ð/ñ
ˆ$ƒx×ј1ÒÜœw t›}¨bÕ1àˆÜœw t›}¨b°#Ô6äœ7¤2§6¡6¨1Ó-¨r°:Ô>Üœ7¤B§F¡F 7¨AÓ.°°KÔ@Üœ7¤B§F¡F 7¨AÓ.°°JÕ?rcó†—ddtjfddtjfddtjfddtjfddtjfddtj
fdd    tj fdd
tjfdd tjfdd tjfd dtjfd dtjfd dtjfd dtjfd dtjfd dtjfd dtj fg}|D]>\}}}    t#|j%|«|j%||««d|›d|›«Œ@y#t&$r>}t)dd|›dt+|«›dt+|«›dt-|«›d    «Yd}~Œ„d}~wwxYw)z2Test the str.format method with NumPy scalar typesz{0}TFz{0:d}é‚iPÃl^ el¸RU iˆÿÿÿiЊÿÿilʈlûÿÿÿx'¦{'    z{0:g}gø?yø?à?zfailed with val z, type zformat raised exception (fmt='z', val=z, type=z, exc='z')N)r ÚboolÚuint8Úuint16Úuint32Úuint64Úint8Úint16Úint32Úint64Úfloat16Úfloat32Úfloat64Ú
longdoubleÚ    complex64Ú
complex128Ú clongdoublerÚformatÚ
ValueErrorrÚreprr)ÚtestsÚfmatÚvalÚvaltypeÚes     rÚtest_scalar_formatr[›s‹€àTœ2Ÿ7™7Ð #Ø Eœ2Ÿ7™7Ð #Ø cœ2Ÿ8™8Ð $Ø eœRŸY™YÐ 'Ø j¤"§)¡)Ð ,Ø Ð*¬B¯I©IÐ 6Ø dœBŸG™GÐ $Ø fœbŸh™hÐ 'Ø k¤2§8¡8Ð ,Ø Ð*¬B¯H©HÐ 5Ø cœ2Ÿ:™:Ð &Ø cœ2Ÿ:™:Ð &Ø cœ2Ÿ:™:Ð &Ø cœ2Ÿ=™=Ð )Ø j¤"§,¡,Ð /Ø j¤"§-¡-Ð 0Ø j¤"§.¡.Ð 1ð! 3€Eð$!&òFшˆsGð    FÜ ˜Ÿ™ SÓ)¨4¯;©;±w¸s³|Ó+DØ& s e¨7°7°)Ð<õ >ñFøôò    FÜ ‘Eâ!¤4¨¥9¬d°7­m¼SÀ½VðE÷ Fñ Fûð    FúsÄ?7E9Å9    GÆ4F;Æ;Gcó^—eZdZd„Zd„Zej jed¬«d„«Z    y)ÚTestCommaDecimalPointLocalecóf—tttjd««td««y©Nç333333ó?)rrr rM©Úselfs rÚtest_locale_singlez.TestCommaDecimalPointLocale.test_locale_single¿s€Ü”SœŸ™ C›Ó)¬3¨s«8Õ4rcóf—tttjd««td««yr_)rrr Údoubleras rÚtest_locale_doublez.TestCommaDecimalPointLocale.test_locale_doubleÂs€Ü”SœŸ™ 3›Ó(¬#¨c«(Õ3rztest flaky on musllinux)Úreasoncóf—tttjd««td««y)Nz1.2r`)rrr rOras rÚtest_locale_longdoublez2TestCommaDecimalPointLocale.test_locale_longdoubleÅs €ô    ”SœŸ™ uÓ-Ó.´°C³Õ9rN)
Ú__name__Ú
__module__Ú __qualname__rcrfÚpytestÚmarkÚskipifrri©rrr]r]½s9„ò5ò4ð ‡[[×јØ8ðó:ñ:ó:ñ:rr])N) r5ÚiorrmÚnumpyr Únumpy._core.tests._localesrÚ numpy.testingrrrrr    r!rnÚ parametrizerMrerOrr"rPÚcdoublerRr'r3r;r>r@r[r]rprrú<module>rws±ðÛ
Ýã ãÝ>ß8Ñ8à
‰˜Ÿ™w ¨¯©°Ð6€ð‡×ј §
¡
¨B¯I©I°r·}±}ÐEÓFñEóGðEð*‡×ј §
¡
¨B¯I©I°r·}±}ÐEÓFñ
EóGð
Eð‡×ј § ¡ ¨b¯j©j¸"¿.¹.ÐIÓJñEóKðEð2‡×ј 2§<¡<°·±¸R¿^¹^Ð"LÓMñ'óNð'ó27ð&‡×ј §
¡
¨B¯I©I°r·}±}ÐEÓFñ .óGð .ð‡×ј § ¡ ¨b¯j©j¸"¿.¹.ÐIÓJñ@óKð@ò$FôD :Ð"9õ :r