hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
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
60
61
62
63
64
65
66
67
68
Ë
KñúhÉãóê—dZd„Zd„ZGd„de«ZeGd„de««ZeGd„de««ZeGd    „d
e««ZeGd „d e««ZeGd „de««Z    eGd„de
««Z y)zÚ
Various richly-typed exceptions, that also help us deal with string formatting
in python where it's easier.
 
By putting the formatting in `__str__`, we also avoid paying the cost for
users who silence the exceptions.
có,—t|«dk(r|dS|S)Néé)Úlen)Útups úJH:\Change_password\venv_build\Lib\site-packages\numpy/_core/_exceptions.pyÚ _unpack_tupler    s€Ü
ˆ3ƒx1‚}ؐ1‰vˆ àˆ
ócó`—t|t«sJ‚|jj|_|S)aG
    A decorator that makes an exception class look like its base.
 
    We use this to hide subclasses that are implementation details - the user
    should catch the base type, which is what the traceback will show them.
 
    Classes decorated with this decorator are subject to removal without a
    deprecation warning.
    )Ú
issubclassÚ    ExceptionÚ__base__Ú__name__)Úclss rÚ_display_as_basers*€ô cœ9Ô %Ð%Ð %Ø—<‘<×(Ñ(€C„LØ €Jr    có—eZdZdZd„Zy)ÚUFuncTypeErrorz% Base class for all ufunc exceptions có—||_y©N)Úufunc)Úselfrs  rÚ__init__zUFuncTypeError.__init__!s    €Øˆ
r    N)rÚ
__module__Ú __qualname__Ú__doc__r©r    rrrs
„Ù/ór    rcó(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncNoLoopErrorz* Thrown when a ufunc loop cannot be found cóD•—t‰||«t|«|_yr)ÚsuperrÚtupleÚdtypes©rrr!Ú    __class__s   €rrz_UFuncNoLoopError.__init__(sø€Ü ‰Ñ˜ÔܘF“mˆ r    c
óè—d|jj›dt|jd|jj«›dt|j|jjd«›S)Nzufunc z6 did not contain a loop with signature matching types z -> )rrrr!Únin©rs rÚ__str__z_UFuncNoLoopError.__str__,sf€àT—Z‘Z×(Ñ(Ð+ð,Ü+¨D¯K©K¸¸¿¹¿¹Ð,HÓIÐLðMÜ § ¡ ¨D¯J©J¯N©N¨OР<Ó=Ð@ð Bð    
r    ©rrrrrr'Ú __classcell__©r#s@rrr%sø„á4ô$ö
r    rcó(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncBinaryResolutionErrorz' Thrown when a binary resolution fails cóZ•—t‰|||«t|j«dk(sJ‚y)Né)rrrr!r"s   €rrz$_UFuncBinaryResolutionError.__init__7s)ø€Ü ‰Ñ˜ Ô'ܐ4—;‘;Ó 1Ò$Ð$Ñ$r    cód—dj|jjg|j¢­ŽS)Nz7ufunc {!r} cannot use operands with types {!r} and {!r})Úformatrrr!r&s rr'z#_UFuncBinaryResolutionError.__str__;s4€ðØ Eß
‰&Ø J‰J× Ñ ð
ð#'§+¡+ò
ð    
r    r(r*s@rr,r,4sø„á1ô%ö
r    r,có‡—eZdZˆfd„ZˆxZS)Ú_UFuncCastingErrorcóN•—t‰||«||_||_||_yr)rrÚcastingÚfrom_Úto)rrr4r5r6r#s     €rrz_UFuncCastingError.__init__Es%ø€Ü ‰Ñ˜Ô؈Œ ؈Œ
؈r    )rrrrr)r*s@rr2r2Cs ø„÷ðr    r2có(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncInputCastingErrorz, Thrown when a ufunc input cannot be casted có8•—t‰|||||«||_yr)rrÚin_i©rrr4r5r6Úir#s      €rrz _UFuncInputCastingError.__init__Osø€Ü ‰Ñ˜ ¨°Ô3؈    r    c
óܗ|jjdk7r|j›dnd}d|jj›d|›d|j›d|j
›d|j ›
S)    Nrú ÚúCannot cast ufunc z input úfrom ú to ú with casting rule )rr%r:rr5r6r4©rÚi_strs  rr'z_UFuncInputCastingError.__str__Ssf€à#'§:¡:§>¡>°QÒ#64—9‘9+˜Q‘¸Bˆà  §¡×!4Ñ!4Р7°w¸u¸gÀU؏z‰zˆn˜D §¡  Ð+>¸t¿|¹|Ð>Nð Pð    
r    r(r*s@rr8r8Lsø„á6ôö
r    r8có(‡—eZdZdZˆfd„Zd„ZˆxZS)Ú_UFuncOutputCastingErrorz- Thrown when a ufunc output cannot be casted có8•—t‰|||||«||_yr)rrÚout_ir;s      €rrz!_UFuncOutputCastingError.__init___sø€Ü ‰Ñ˜ ¨°Ô3؈
r    c
óܗ|jjdk7r|j›dnd}d|jj›d|›d|j›d|j
›d|j ›
S)    Nrr>r?r@z output rArBrC)rÚnoutrIrr5r6r4rDs  rr'z _UFuncOutputCastingError.__str__csg€à$(§J¡J§O¡O°qÒ$84—:‘:,˜aÑ ¸bˆà  §¡×!4Ñ!4Р7°xÀ¸wÀe؏z‰zˆn˜D §¡  Ð+>¸t¿|¹|Ð>Nð Pð    
r    r(r*s@rrGrG\sø„á7ôö
r    rGcó<—eZdZdZd„Zed„«Zed„«Zd„Z    y)Ú_ArrayMemoryErrorz) Thrown when an array cannot be allocatedcó —||_||_yr)ÚshapeÚdtype)rrOrPs   rrz_ArrayMemoryError.__init__os€ØˆŒ
؈
r    có^—|jj}|jD]}||z}Œ    |Sr)rPÚitemsizerO)rÚ    num_bytesÚdims   rÚ _total_sizez_ArrayMemoryError._total_sizess4€à—J‘J×'Ñ'ˆ    Ø—:‘:ò    ˆCØ ˜Ñ ‰Ið    àÐr    cóV—d}d}gd¢}t|j«dz
d«|z}d||zz}||z }~t|«|k(r
|dz }||z}|t|«k\rt|«dz
}|d||z
|zzz}|}||}|dk(r|d›d|›St|«dkr|d    ›d|›S|d
›d|›S) z5 Convert a number of bytes into a binary size string é
i)ÚbytesÚKiBÚMiBÚGiBÚTiBÚPiBÚEiBrrz.0fr>ièz#.3gz#.0f)ÚmaxÚ
bit_lengthÚroundr)    rSÚ    LOG2_STEPÚSTEPÚunitsÚunit_iÚunit_valÚn_unitsÚ
new_unit_iÚ    unit_names             rÚ_size_to_stringz!_ArrayMemoryError._size_to_stringzsþ€ð
ˆ    ØˆÚCˆäY×)Ñ)Ó+¨aÑ/°Ó3°yÑ@ˆØ˜ )Ñ+Ñ,ˆØ˜hÑ&ˆØ ô ‹>˜TÒ !Ø a‰KˆFØ t‰OˆGð ”S˜“ZÒ Ü˜U› a™ˆJØ q˜f zÑ1°YÑ>Ñ?Ñ ?ˆG؈Fà˜&‘Mˆ    à QŠ;à˜c] ! I ;Ð/Ð /Ü 7‹^˜dÒ "à˜d^ 1 Y KÐ0Ð 0ð˜d^ 1 Y KÐ0Ð 0r    cóv—|j|j«}d|›d|j›d|j›S)NzUnable to allocate z for an array with shape z and data type )rjrUrOrP)rÚsize_strs  rr'z_ArrayMemoryError.__str__Ÿs?€Ø×'Ñ'¨×(8Ñ(8Ó9ˆØ% h ZÐ/HØ—:‘:,˜o¨d¯j©j¨\ð;ð    <r    N)
rrrrrÚpropertyrUÚ staticmethodrjr'rr    rrMrMls8„á3òðñóðð ñ"1óð"1óH<r    rMN) rrrÚ    TypeErrorrrr,r2r8rGÚ MemoryErrorrMrr    rú<module>rqsÅðñòò ôYôð ô 
˜ó 
óð 
ðô 
Ð"3ó 
óð 
ðô˜óóððô 
Ð0ó 
óð 
ðô 
Ð1ó 
óð 
ðô5<˜ ó5<óñ5<r