grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026§ ú~ŽÛ„Èk_ãóæ—dZddlZddlZddlZddlZddlZddlZdgZGd„d¦«Zd„Z ddl Z e j e¦«j ¦«ej d„¦«dZdS#e$rdZYdSwxYw) a1Word completion for GNU readline. The completer completes keywords, built-ins and globals in a selectable namespace (which defaults to __main__); when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import sys" type "sys.", hit the completion key (twice), and see the list of names defined by the sys module! Tip: to use the tab key as the completion key, call readline.parse_and_bind("tab: complete") Notes: - Exceptions raised by the completer function are *ignored* (and generally cause the completion to fail). This is a feature -- since readline sets the tty device in raw (or cbreak) mode, printing a traceback wouldn't work well without some complicated hoopla to save, reset and restore the tty state. - The evaluation of the NAME.NAME... form may cause arbitrary application defined code to be executed if an object with a __getattr__ hook is found. Since it is the responsibility of the application (or the user) to enable this feature, I consider this an acceptable risk. More complicated expressions (e.g. function calls or indexing operations) are *not* evaluated. - When the original stdin is not a tty device, GNU readline is never used, and this module (and the readline module) are silently inactive. éNÚ Completercó.—eZdZdd„Zd„Zd„Zd„Zd„ZdS)rNcó„—|r$t|t¦«std¦«‚|€ d|_dSd|_||_dS)aáCreate a new completer for the command line. Completer([namespace]) -> completer instance. If unspecified, the default namespace where completions are performed is __main__ (technically, __main__.__dict__). Namespaces should be given as dictionaries. Completer instances should be used as the completion mechanism of readline via the set_completer() call: readline.set_completer(Completer(my_namespace).complete) znamespace must be a dictionaryNér)Ú isinstanceÚdictÚ TypeErrorÚ use_main_nsÚ namespace)Úselfr s ú2/opt/alt/python311/lib64/python3.11/rlcompleter.pyÚ__init__zCompleter.__init__*sU€ð ð >�Z¨ µ4Ñ8Ô8ð >ÝÐ<Ñ=Ô=Ð =ð Ð Ø ˆDÔ Ð Ð à ˆDÔ Ø&ˆDŒNˆNˆNócóŠ—|jrtj|_| ¦«s:|dkr2t r)t jd¦«t j¦«dSdSdS|dkr9d|vr|  |¦«|_ n|  |¦«|_ |j |S#t$rYdSwxYw)zÂReturn the next possible completion for 'text'. This is called successively with state == 0, 1, 2, ... until it returns None. The completion should begin with 'text'. rú ÚNú.) r Ú__main__Ú__dict__r ÚstripÚ_readline_availableÚreadlineÚ insert_textÚ redisplayÚ attr_matchesÚmatchesÚglobal_matchesÚ IndexError)r ÚtextÚstates r ÚcompletezCompleter.completeEsÛ€ð Ô ð /Ý%Ô.ˆDŒNà�zŠz‰|Œ|ð Ø˜ŠzˆzÝ&ð ÝÔ(¨Ñ.Ô.Ð.ÝÔ&Ñ(Ô(Ð(ؘ2à˜4à�tà �AŠ:ˆ:Ø�dˆ{ˆ{Ø#×0Ò0°Ñ6Ô6�” � à#×2Ò2°4Ñ8Ô8�” ð Ø”< Ô&Ð &øÝð ð ð Ø�4�4ð øøøsÂ' B4Â4 CÃCcóŽ—t|¦«r5|dz } tj|¦«js|dz }n#t$rYnwxYw|S)Nú(ú))ÚcallableÚinspectÚ signatureÚ parametersÚ ValueError)r ÚvalÚwords r Ú_callable_postfixzCompleter._callable_postfixdse€Ý �C‰=Œ=ð Ø �C‰KˆDð ÝÔ(¨Ñ-Ô-Ô8ð Ø˜C‘K�DøøÝð ð ð Ø�ð øøøðˆ s–5µ AÁAcóü—g}dh}t|¦«}tjtjzD]M}|d|…|kr=| |¦«|dvr|dz}n |dvr|dz}| |¦«ŒN|jtjfD]l}|  ¦«D]U\}}|d|…|krB||vr>| |¦«| |  ||¦«¦«ŒVŒm|S)z²Compute matches when text is a simple name. Return a list of all keywords, built-in functions and names currently defined in self.namespace that match. Ú __builtins__N>ÚtryÚfinallyú:>Ú_ÚNoneÚTrueÚelseÚpassÚFalseÚbreakÚcontinueú ) ÚlenÚkeywordÚkwlistÚ softkwlistÚaddÚappendr ÚbuiltinsrÚitemsr,)r rrÚseenÚnr+Únspacer*s r rzCompleter.global_matchesos2€ðˆØÐˆÝ �‰IŒIˆÝ”N¥WÔ%7Ñ7ð %ð %ˆDØ�B�Q�BŒx˜4ÒÐØ—’˜‘”�ØÐ-Ð-Ð-Ø #™:�D�DØð"/ð/ð/ð  #™:�DØ—’˜tÑ$Ô$Ð$øØ”~¥xÔ'8Ð9ð Fð FˆFØ#Ÿ\š\™^œ^ð Fð F‘ ��cؘ˜˜”8˜tÒ#Ð#¨°DÐ(8Ð(8Ø—H’H˜T‘N”N�NØ—N’N 4×#9Ò#9¸#¸tÑ#DÔ#DÑEÔEÐEøð FðˆrcóØ—tjd|¦«}|sgS| dd¦«\}} t||j¦«}n#t $rgcYSwxYwt t|¦«¦«}| d¦«t|d¦«r<|  d¦«|  t|j ¦«¦«g}t|¦«}|dkrd} n |dkrd} nd } |D]Ã} | d |…|kr³| r| d |dz…| ks |›d | ›�} tt!t#|¦«| d ¦«t$¦«r| | ¦«Œqt!|| d ¦«x} �*| | | | ¦«¦«Œ®| | ¦«ŒÄ|s| sn | dkrd} nd } Œ×| ¦«|S) a¿Compute matches when text contains a dot. Assuming the text is of the form NAME.NAME....[NAME], and is evaluable in self.namespace, it will be evaluated and its attributes (as revealed by dir()) are used as possible completions. (For class instances, class members are also considered.) WARNING: this can still invoke arbitrary C code, if an object with a __getattr__ hook is evaluated. z(\w+(\.\w+)*)\.(\w*)rér.Ú __class__rr2Ú__NTr)ÚreÚmatchÚgroupÚevalr Ú ExceptionÚsetÚdirÚdiscardÚhasattrr?ÚupdateÚget_class_membersrHr;rÚgetattrÚtypeÚpropertyr@r,Úsort) r rÚmÚexprÚattrÚ thisobjectÚwordsrrDÚnoprefixr+rKÚvalues r rzCompleter.attr_matchesŠs:€õ ŒHÐ,¨dÑ 3Ô 3ˆØð ؈IØ—W’W˜Q ‘]”]‰ ˆˆdð ݘd D¤NÑ3Ô3ˆJˆJøÝð ð ð ØˆIˆIˆIð øøøõ•C˜ ‘O”OÑ$Ô$ˆØ � Š �nÑ%Ô%Ð%å �:˜{Ñ +Ô +ð BØ �IŠI�kÑ "Ô "Ð "Ø �LŠLÕ*¨:Ô+?Ñ@Ô@Ñ AÔ AÐ AØˆÝ �‰IŒIˆØ �2Š:ˆ:؈HˆHØ �SŠ[ˆ[؈HˆHàˆHð Øð .ð .�ؘ˜!˜”H Ò$Ð$Ø!ð%Ø&*¨4¨A¨a©C¨4¤j°HÒ&<Ð&<Ø'+ t t¨T¨TÐ2�EÝ!¥'­$¨zÑ*:Ô*:¸DÀ$Ñ"GÔ"GÝ"*ñ,ô,ð !ð Ÿš uÑ-Ô-Ð-Ø Ý!(¨°T¸4Ñ!@Ô!@Ð@˜ÐMØŸš t×'=Ò'=¸eÀUÑ'KÔ'KÑLÔLÐLÐLàŸš uÑ-Ô-Ð-øØð ˜hð ØØ˜3ŠˆØ��à�ð1 ð2 � Š ‰ŒˆØˆs´A Á AÁA©N)Ú__name__Ú __module__Ú __qualname__rr!r,rr©rr rr)sd€€€€€ð'ð'ð'ð'ð6ððð> ð ð ðððð6>ð>ð>ð>ð>rcó|—t|¦«}t|d¦«r|jD]}|t|¦«z}Œ|S)NÚ __bases__)rPrRrfrT)ÚklassÚretÚbases r rTrTÊsJ€Ý ˆe‰*Œ*€C݈u�[Ñ!Ô!ð0Ø”Oð 0ð 0ˆDØÕ)¨$Ñ/Ô/Ñ/ˆCˆCØ €Jrcó*—tjd¦«Sr`)rÚ set_completerrdrr úrlÚs€�HÔ2°4Ñ8Ô8€rTF)Ú__doc__ÚatexitrAr&r<rJrÚ__all__rrTrrkr!ÚregisterrÚ ImportErrorrdrr úrrs ðððð>€ € € Ø€€€Ø€€€Ø€€€Ø € € € Ø€€€à ˆ-€ð_ð_ð_ð_ð_ñ_ô_ð_ðBððð Ø€O€O€Oð€HÔ˜9˜9™;œ;Ô/Ñ0Ô0Ð0ð€F„OÐ8Ð8Ñ9Ô9Ð9ØÐÐÐøðð ð ð ØÐÐÐÐð øøøs¯A%Á%A0Á/A0