| 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 : /Python315/Lib/__pycache__/ |
Upload File : |
R
>lqj�� c � � Q s ] PHs] PHs] PHs] QHGs , QNs
QQP
QP
QP QP
-Q kksQQP
QP
QP QP
-Q kksQP
-Q ks
Q
sQ sQ s Q
Q2 sQ s Q Q2 s\ \\\\\\\ P2 .2 sQ sQ sP! )a/ Support to pretty-print lists, tuples, & dictionaries recursively.
Very simple, but useful, especially in debugging data structures.
Classes
-------
PrettyPrinter()
Handle pretty-printing operations onto a stream using a configured
set of formatting parameters.
Functions
---------
pformat()
Format a Python object into a pretty-printed representation.
pprint()
Pretty-print a Python object to a stream [default is sys.stdout].
saferepr()
Generate a 'standard' repr()-like value, but protect against recursive
data structures.
)�StringIO�
PrettyPrinter�compact�expand�
sort_dicts�underscore_numbersc �J � [ VV4VVUUQ5 o U O U 2 P! )zAPretty-print a Python object to a stream [default is sys.stdout].)�stream�indent�width�depthr r r r )r �pprint)
�objectr r r
r r r r r �printers
&&&&&$$$$ �C:\Python315\\Lib\pprint.pyr r . s) � � ��E��:�-�/�G� �N�N�6�� c
�B � [ VUVEUUQ5 O U 2 ! )z<Format a Python object into a pretty-printed representation.)r r
r r r r r )r �pformat)r
r r
r r r r r s &&&&$$$$r r r 9 s( � � ��5�!(�J�,>�@�@G����Pr c �, � [ U ,UN3QU-U@ P! )zPretty-print a Python objectr )r )r
r �args�kwargss &$*,r �ppr B s � �
�6�:�D�:�Z�:�6�:r c �J � [ 2 O U - P] 2 ] * ! )z=Version of repr() which can handle recursive data structures.�r �
_safe_repr�r
s &r �safereprr G � � ��?�%�%�f�b�$��:�1�=�=r c �J � [ 2 O U - P] 2 ]* ! )z4Determine if saferepr(object) is readable by eval().r r s &r �
isreadabler L r r c �J � [ 2 O U - P] 2 ]* ! )z8Determine if object requires a recursive representation.r r s &r �isrecursiver Q r r c �8 ` � \ sQ s]Vs n QsQ,sQ sQ sQsU s P! )� _safe_keyaA Helper function for key functions when sorting unorderable objects.
The wrapped-object will fallback to a Py2.x style comparison for
unorderable types (sorting first comparing the type name and then by
the obj ids). Does not work recursively, so dict.items() must have
_safe_key applied to both the key and the value.
�objc � � Vm P! �N�r# )�selfr# s &&r �__init__�_safe_key.__init__b s � ��r c �( � U O UO 6 ! [ ck [ [ S O 2 2 [ S O 2 1[ [ SO 2 2 [ SO 2 16 t ! h 9 hr% )r# � TypeError�str�type�id)r'