§
µäYów3Äã óæ — d Z g d¢ZddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dZd Z
ee
fd
„Zee
fd„Zd„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdefdefdefgdefdefdefgdefdefdefgdefdefdefgdœZd„ Zd„ Z ddlmZ n# e $ r Y nw xY w e!¦ « Z"e"fd „Z# dd!lm#Z# n# e $ r Y nw xY w G d"„ d#¦ « Z$ dd$lm$Z$ n# e $ r Y nw xY w G d%„ d&e!¦ « Z%d'„ Z& ed(g d)¢¦ « Z' G d*„ d+e(¦ « Z) e!¦ « fe*e+he,e-e.fd,„Z/d=d/„Z0d0„ Z1 dd1lm1Z1 n# e $ r Y nw xY wd2„ Z2d3„ Z3d>d5„Z4d6„ Z5d7„ Z6d8„ Z7 G d9„ d:¦ « Z8 e!¦ « Z9 G d;„ d<¦ « Z:d4S )?zEfunctools.py - Tools for working with functions and callable objects
)Úupdate_wrapperÚwrapsÚWRAPPER_ASSIGNMENTSÚWRAPPER_UPDATESÚtotal_orderingÚcacheÚ
cmp_to_keyÚ lru_cacheÚreduceÚpartialÚ
partialmethodÚsingledispatchÚsingledispatchmethodÚcached_propertyé )Úget_cache_token)Ú
namedtuple)Úrecursive_repr)ÚRLock)ÚGenericAlias)Ú
__module__Ú__name__Ú__qualname__Ú__doc__Ú__annotations__)Ú__dict__c óð — |D ]4} t ||¦ « }t | ||¦ « Œ%# t $ r Y Œ1w xY w|D ]4}t | |¦ « t ||i ¦ « ¦ « Œ5|| _ | S )a Update a wrapper function to look like the wrapped function
wrapper is the function to be updated
wrapped is the original function
assigned is a tuple naming the attributes assigned directly
from the wrapped function to the wrapper function (defaults to
functools.WRAPPER_ASSIGNMENTS)
updated is a tuple naming the attributes of the wrapper that
are updated with the corresponding attribute from the wrapped
function (defaults to functools.WRAPPER_UPDATES)
)ÚgetattrÚsetattrÚAttributeErrorÚupdateÚ__wrapped__)ÚwrapperÚwrappedÚassignedÚupdatedÚattrÚvalues ú6/opt/alt/python-internal/lib64/python3.11/functools.pyr r # s¯ € ð ð *ð *ˆð *ݘG TÑ*Ô*ˆEõ
�G˜T 5Ñ)Ô)Ð)Ð)øõ ð ð ð ØˆDð øøøð ð Bð BˆÝ�˜ÑÔ×%Ò%¥g¨g°t¸RÑ&@Ô&@ÑAÔAÐAÐAð "€GÔà€Ns †(¨
5´5c ó2 — t t | ||¬¦ « S )a‹ Decorator factory to apply update_wrapper() to a wrapper function
Returns a decorator that invokes update_wrapper() with the decorated
function as the wrapper argument and the arguments to wraps() as the
remaining arguments. Default arguments are as for update_wrapper().
This is a convenience function to simplify applying partial() to
update_wrapper().
©r# r$ r% )r r r* s r( r r A s$ € õ •>¨7Ø$¨gð7ñ 7ô 7ð 7ó c óp — t | ¦ « | |¦ « }|t u r|S | o| |k S )zIReturn a > b. Computed by @total_ordering from (not a < b) and (a != b).©ÚtypeÚ__lt__ÚNotImplemented©ÚselfÚotherÚ op_results r( Ú_gt_from_ltr5 Y ó? € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐ؈=Ð*˜T Uš]Ð*r+ c ón — t | ¦ « | |¦ « }|t u r|S |p| |k S )zEReturn a <= b. Computed by @total_ordering from (a < b) or (a == b).r- r1 s r( Ú_le_from_ltr8 ` ó= € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØÐ%˜ š
Ð%r+ c ód — t | ¦ « | |¦ « }|t u r|S | S )z=Return a >= b. Computed by @total_ordering from (not a < b).r- r1 s r( Ú_ge_from_ltr; g ó6 € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐ؈=Ðr+ c óp — t | ¦ « | |¦ « }|t u r|S | p| |k S )zJReturn a >= b. Computed by @total_ordering from (not a <= b) or (a == b).©r. Ú__le__r0 r1 s r( Ú_ge_from_ler@ n ó? € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐ؈=Ð)˜D EšMÐ)r+ c ón — t | ¦ « | |¦ « }|t u r|S |o| |k S )zFReturn a < b. Computed by @total_ordering from (a <= b) and (a != b).r> r1 s r( Ú_lt_from_lerC u ó= € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØÐ&˜ šÐ&r+ c ód — t | ¦ « | |¦ « }|t u r|S | S )z=Return a > b. Computed by @total_ordering from (not a <= b).r> r1 s r( Ú_gt_from_lerF | r<