| 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/dbm/__pycache__/ |
Upload File : |
R
>lqj�2 c � � Q s ] PHs] PHs] PHs] PHsQQ,s Qs
\s Q Q\O O 2 sQQ ksP! )a� A dumb and slow but simple dbm clone.
For database spam, spam.dir contains the index (a text file),
spam.bak *may* contain a backup of the index (also a text file),
while spam.dat contains the data (a binary file).
XXX TO DO:
- seems to contain a bug when updating...
- reclaim free space (currently, space once occupied by deleted or expanded
items is not reused except if .reorganize() is called)
- support concurrent access (currently, if two processes take turns making
updates, they can mess up the index)
- support efficient access to large databases (currently, the whole index
is read when the database is opened, and some updates rewrite the whole index)
�error�open� c � ` � \ sQ s]!s n \s\sQQ ksQ sQ sQ s \ s
Q sQ sQ s
Q sQ sQ
sQ sQ sQ
sQ sQ s\sQ sQ s\sQ sQ sQ sQ sQsU sP! )� _Databasec � � U O O U2 oV m UQ 6H U m UQ* U m UQ* U m UQ* U m PU m U O U2 U O U2 P! )�rs .dirs .dats .bak)
�_os�fsencode�_mode� _readonly�_dirfile�_datfile�_bakfile�_index�_create�_update)�self�filebasename�mode�flags &&&&�C:\Python315\\Lib\dbm\dumb.py�__init__�_Database.__init__. sq � ��x�x�(�(��6���
��#�+��� %�w�.��
� %�w�.��
�$�w�.��
� ���
���T�����T�� c �" � UQ 6X cC U O U O U O 1F D o [ O U2 J [ O U O QQQ5 oUO 2 P! [
c Jb h 9 h [
cq SQ7 c g [ O S O QQQ5 9^tt^ 2 oS O S O 2 PPP2 P! ) % f h P! 9 hh 9 h)�nr �Latin-1��encoding�w��cr )
r
r r r �remove�OSError�_ior �close�_chmod)r r �filename�fs && r r �_Database._createH s� � ��3�;�!�]�]�D�M�M�4�=�=�I����J�J�x�(� J� ��������i�@�A�
�G�G�I�� � ����
� +��:�%�����$�-�-��y�A�A�Q����D�M�M�*� B�A�A�A�� +�sS �B�#B � B�B�B� D�D�%,D�C8�-D�8D
�D
�D�
Dc �b � P
U m - U m [ O U O QQQ5 oS9^tt^ 2 SF DJ oUO 2 o[ O U2 v qEUO Q2 oVPO U$ JL PPP2 P! ) % f h P! 9 h [ cv SQ7 c g S O O S O QQQ5 9^tt^ 2 oS O S O 2 PPP2 P! ) % f h P! 9 hh 9 h)Fr r r r r )� _modifiedr r$ r r �rstrip�_ast�literal_eval�encoder# r&