| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/test/test_importlib/__pycache__/ |
Upload File : |
R
>lqj�2 c �p � ] PH s ] PHs] PHs] PHs] PHs] PHs] PHs] PHs] QH G s \ O Q 2 s\ O Q 2 s Q Q\O 2 s Q Q\2 s Q Q \2 s Q
Q\2 s Q Q
\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q\2 s Q Q!\2 s Q" Q#\2 s Q$ Q%\2 s Q& Q'\2 s\ Q(6X c \OB 2 P! P! ))� )�utilc # � � [ O o [ O O 2 o Pw � U [ m [ O O 2 [ O O U2 P! S [ m [ O O 2 [ O O S2 h 9 h3h)z�
Make sure sys.modules is the same object and has the same content
when exiting the context as when entering.
Similar to importlib.test.util.uncache, but doesn't require explicit
names.
)�sys�modules�copy�clear�update)�sys_modules_saved�sys_modules_copys �<C:\Python315\\Lib\test\test_importlib\test_namespace_pkgs.py�sys_modules_contextr s� � � � �����{�{�'�'�)��-�
�'��������������+�,�� (��������������+�,�s �0C�B �A
C�A
C�Cc + �r � U O Q[ O 2 U O Q[ O 2 [ O
Q- U @ oS9^tt^ 2 [
2 9^tt^ 2 Pw � PPP2 PPP2 P! ) % f h K9 h ) % f h P! 9 h3h)z�
Save import state and sys.modules cache and restore it on exit.
Typical usage:
>>> with namespace_tree_context(path=['/tmp/xxyy/portion1',
... '/tmp/xxyy/portion2']):
... pass
� meta_path�
path_hooks� )�
setdefaultr r r r �import_stater )�kwargs�import_contexts , r �namespace_tree_contextr '