$99 GRAYBYTE WORDPRESS FILE MANAGER $39

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.160.161 | ADMIN IP 216.73.216.86
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib64/python2.7/

HOME
Current File : /lib64/python2.7//shelve.pyo
�
zfc@sdZyddlmZmZWn'ek
rIddlmZmZnXyddlmZWn!ek
r�ddlmZnXddlZddddgZ	d	ej
fd
��YZdej
fd��YZdefd��YZ
defd
��YZdded�ZdS(s�
Manage shelves of pickled objects.

A "shelf" is a persistent, dictionary-like object.  The difference
with dbm databases is that the values (not the keys!) in a shelf can
be essentially arbitrary Python objects -- anything that the "pickle"
module can handle.  This includes most class instances, recursive data
types, and objects containing lots of shared sub-objects.  The keys
are ordinary strings.

To summarize the interface (key is a string, data is an arbitrary
object):

        import shelve
        d = shelve.open(filename) # open, with (g)dbm filename -- no suffix

        d[key] = data   # store data at key (overwrites old data if
                        # using an existing key)
        data = d[key]   # retrieve a COPY of the data at key (raise
                        # KeyError if no such key) -- NOTE that this
                        # access returns a *copy* of the entry!
        del d[key]      # delete data stored at key (raises KeyError
                        # if no such key)
        flag = d.has_key(key)   # true if the key exists; same as "key in d"
        list = d.keys() # a list of all existing keys (slow!)

        d.close()       # close it

Dependent on the implementation, closing a persistent dictionary may
or may not be necessary to flush changes to disk.

Normally, d[key] returns a COPY of the entry.  This needs care when
mutable entries are mutated: for example, if d[key] is a list,
        d[key].append(anitem)
does NOT modify the entry d[key] itself, as stored in the persistent
mapping -- it only modifies the copy, which is then immediately
discarded, so that the append has NO effect whatsoever.  To append an
item to d[key] in a way that will affect the persistent mapping, use:
        data = d[key]
        data.append(anitem)
        d[key] = data

To avoid the problem with mutable entries, you may pass the keyword
argument writeback=True in the call to shelve.open.  When you use:
        d = shelve.open(filename, writeback=True)
then d keeps a cache of all entries you access, and writes them all back
to the persistent mapping when you call d.close().  This ensures that
such usage as d[key].append(anitem) works as intended.

However, using keyword argument writeback=True may consume vast amount
of memory for the cache, and it may make d.close() very slow, if you
access many of d's entries after opening it in this way: d has no way to
check which of the entries you access are mutable and/or which ones you
actually mutate, so it must cache, and write back at close, all of the
entries that you access.  You can call d.sync() to write back all the
entries in the cache, and empty the cache (d.sync() also synchronizes
the persistent dictionary on disk, if feasible).
i����(tPicklert	Unpickler(tStringIONtShelft
BsdDbShelftDbfilenameShelftopent_ClosedDictcBs2eZdZd�ZeZZZZd�ZRS(s>Marker for a closed dict.  Access attempts raise a ValueError.cGstd��dS(Ns!invalid operation on closed shelf(t
ValueError(tselftargs((s/usr/lib64/python2.7/shelve.pytclosedNscCsdS(Ns<Closed Dictionary>((R	((s/usr/lib64/python2.7/shelve.pyt__repr__Rs(	t__name__t
__module__t__doc__Rt__getitem__t__setitem__t__delitem__tkeysR(((s/usr/lib64/python2.7/shelve.pyRKs	cBs�eZdZd
ed�Zd�Zd�Zd�Zd�Z	d
d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�ZRS(s�Base class for shelf implementations.

    This is initialized with a dictionary-like object.
    See the module's __doc__ string for an overview of the interface.
    cCs=||_|dkrd}n||_||_i|_dS(Ni(tdicttNonet	_protocolt	writebacktcache(R	RtprotocolR((s/usr/lib64/python2.7/shelve.pyt__init__\s				cCs
|jj�S(N(RR(R	((s/usr/lib64/python2.7/shelve.pyRdscCs
t|j�S(N(tlenR(R	((s/usr/lib64/python2.7/shelve.pyt__len__gscCs
||jkS(N(R(R	tkey((s/usr/lib64/python2.7/shelve.pythas_keyjscCs
||jkS(N(R(R	R((s/usr/lib64/python2.7/shelve.pyt__contains__mscCs||jkr||S|S(N(R(R	Rtdefault((s/usr/lib64/python2.7/shelve.pytgetpscCsgy|j|}WnOtk
rbt|j|�}t|�j�}|jrc||j|<qcnX|S(N(RtKeyErrorRRRtloadR(R	Rtvaluetf((s/usr/lib64/python2.7/shelve.pyRus
	cCsX|jr||j|<nt�}t||j�}|j|�|j�|j|<dS(N(RRRRRtdumptgetvalueR(R	RR$R%tp((s/usr/lib64/python2.7/shelve.pyRs		
cCs0|j|=y|j|=Wntk
r+nXdS(N(RRR"(R	R((s/usr/lib64/python2.7/shelve.pyR�s


cCsq|jdkrdSz3|j�y|jj�Wntk
rDnXWdyt�|_Wnd|_nXXdS(N(RRtsynctclosetAttributeErrorR(R	((s/usr/lib64/python2.7/shelve.pyR*�s

cCs!t|d�sdS|j�dS(NR(thasattrR*(R	((s/usr/lib64/python2.7/shelve.pyt__del__�scCs�|jrZ|jrZt|_x'|jj�D]\}}|||<q+Wt|_i|_nt|jd�r||jj�ndS(NR)(RRtFalset	iteritemstTrueR,RR)(R	Rtentry((s/usr/lib64/python2.7/shelve.pyR)�s		N(R
RRRR.RRRRRR!RRRR*R-R)(((s/usr/lib64/python2.7/shelve.pyRUs					
				cBsJeZdZded�Zd�Zd�Zd�Zd�Z	d�Z
RS(s�Shelf implementation using the "BSD" db interface.

    This adds methods first(), next(), previous(), last() and
    set_location() that have no counterpart in [g]dbm databases.

    The actual database must be opened using one of the "bsddb"
    modules "open" routines (i.e. bsddb.hashopen, bsddb.btopen or
    bsddb.rnopen) and passed to the constructor.

    See the module's __doc__ string for an overview of the interface.
    cCstj||||�dS(N(RR(R	RRR((s/usr/lib64/python2.7/shelve.pyR�scCs:|jj|�\}}t|�}|t|�j�fS(N(Rtset_locationRRR#(R	RR$R%((s/usr/lib64/python2.7/shelve.pyR2�scCs7|jj�\}}t|�}|t|�j�fS(N(RtnextRRR#(R	RR$R%((s/usr/lib64/python2.7/shelve.pyR3�scCs7|jj�\}}t|�}|t|�j�fS(N(RtpreviousRRR#(R	RR$R%((s/usr/lib64/python2.7/shelve.pyR4�scCs7|jj�\}}t|�}|t|�j�fS(N(RtfirstRRR#(R	RR$R%((s/usr/lib64/python2.7/shelve.pyR5�scCs7|jj�\}}t|�}|t|�j�fS(N(RtlastRRR#(R	RR$R%((s/usr/lib64/python2.7/shelve.pyR6�sN(R
RRRR.RR2R3R4R5R6(((s/usr/lib64/python2.7/shelve.pyR�s				cBs eZdZdded�ZRS(s�Shelf implementation using the "anydbm" generic dbm interface.

    This is initialized with the filename for the dbm database.
    See the module's __doc__ string for an overview of the interface.
    tccCs2ddl}tj||j||�||�dS(Ni����(tanydbmRRR(R	tfilenametflagRRR8((s/usr/lib64/python2.7/shelve.pyR�sN(R
RRRR.R(((s/usr/lib64/python2.7/shelve.pyR�sR7cCst||||�S(sOpen a persistent dictionary for reading and writing.

    The filename parameter is the base filename for the underlying
    database.  As a side-effect, an extension may be added to the
    filename and more than one file may be created.  The optional flag
    parameter has the same interpretation as the flag parameter of
    anydbm.open(). The optional protocol parameter specifies the
    version of the pickle protocol (0, 1, or 2).

    See the module's __doc__ string for an overview of the interface.
    (R(R9R:RR((s/usr/lib64/python2.7/shelve.pyR�s
(RtcPickleRRtImportErrortpicklet	cStringIORtUserDictt__all__t	DictMixinRRRRRR.R(((s/usr/lib64/python2.7/shelve.pyt<module>9s


[*

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 May 2026 8.52 AM
root / root
0555
Demo
--
9 Jun 2024 8.36 AM
root / root
0755
Doc
--
10 Apr 2024 4.58 AM
root / root
0755
Tools
--
9 Jun 2024 8.36 AM
root / root
0755
bsddb
--
9 Jun 2024 8.36 AM
root / root
0755
compiler
--
9 Jun 2024 8.36 AM
root / root
0755
config
--
9 Jun 2024 8.36 AM
root / root
0755
ctypes
--
9 Jun 2024 8.36 AM
root / root
0755
curses
--
9 Jun 2024 8.36 AM
root / root
0755
distutils
--
9 Jun 2024 8.36 AM
root / root
0755
email
--
9 Jun 2024 8.36 AM
root / root
0755
encodings
--
9 Jun 2024 8.36 AM
root / root
0755
ensurepip
--
9 Jun 2024 8.36 AM
root / root
0755
hotshot
--
9 Jun 2024 8.36 AM
root / root
0755
idlelib
--
9 Jun 2024 8.36 AM
root / root
0755
importlib
--
9 Jun 2024 8.36 AM
root / root
0755
json
--
9 Jun 2024 8.36 AM
root / root
0755
lib-dynload
--
9 Jun 2024 8.36 AM
root / root
0755
lib-tk
--
9 Jun 2024 8.36 AM
root / root
0755
lib2to3
--
9 Jun 2024 8.36 AM
root / root
0755
logging
--
9 Jun 2024 8.36 AM
root / root
0755
multiprocessing
--
9 Jun 2024 8.36 AM
root / root
0755
plat-linux2
--
9 Jun 2024 8.36 AM
root / root
0755
pydoc_data
--
9 Jun 2024 8.36 AM
root / root
0755
site-packages
--
18 Apr 2025 8.39 AM
root / root
0755
sqlite3
--
9 Jun 2024 8.36 AM
root / root
0755
test
--
9 Jun 2024 8.36 AM
root / root
0755
unittest
--
9 Jun 2024 8.36 AM
root / root
0755
wsgiref
--
9 Jun 2024 8.36 AM
root / root
0755
xml
--
9 Jun 2024 8.36 AM
root / root
0755
BaseHTTPServer.py
22.214 KB
10 Apr 2024 4.58 AM
root / root
0644
BaseHTTPServer.pyc
21.213 KB
10 Apr 2024 4.58 AM
root / root
0644
BaseHTTPServer.pyo
21.213 KB
10 Apr 2024 4.58 AM
root / root
0644
Bastion.py
5.609 KB
10 Apr 2024 4.58 AM
root / root
0644
Bastion.pyc
6.504 KB
10 Apr 2024 4.58 AM
root / root
0644
Bastion.pyo
6.504 KB
10 Apr 2024 4.58 AM
root / root
0644
CGIHTTPServer.py
12.782 KB
10 Apr 2024 4.58 AM
root / root
0644
CGIHTTPServer.pyc
10.76 KB
10 Apr 2024 4.58 AM
root / root
0644
CGIHTTPServer.pyo
10.76 KB
10 Apr 2024 4.58 AM
root / root
0644
ConfigParser.py
27.096 KB
10 Apr 2024 4.58 AM
root / root
0644
ConfigParser.pyc
24.622 KB
10 Apr 2024 4.58 AM
root / root
0644
ConfigParser.pyo
24.622 KB
10 Apr 2024 4.58 AM
root / root
0644
Cookie.py
25.916 KB
10 Apr 2024 4.58 AM
root / root
0644
Cookie.pyc
22.127 KB
10 Apr 2024 4.58 AM
root / root
0644
Cookie.pyo
22.127 KB
10 Apr 2024 4.58 AM
root / root
0644
DocXMLRPCServer.py
10.516 KB
10 Apr 2024 4.58 AM
root / root
0644
DocXMLRPCServer.pyc
9.956 KB
10 Apr 2024 4.58 AM
root / root
0644
DocXMLRPCServer.pyo
9.85 KB
10 Apr 2024 4.58 AM
root / root
0644
HTMLParser.py
16.769 KB
10 Apr 2024 4.58 AM
root / root
0644
HTMLParser.pyc
13.405 KB
10 Apr 2024 4.58 AM
root / root
0644
HTMLParser.pyo
13.107 KB
10 Apr 2024 4.58 AM
root / root
0644
MimeWriter.py
6.33 KB
10 Apr 2024 4.58 AM
root / root
0644
MimeWriter.pyc
7.191 KB
10 Apr 2024 4.58 AM
root / root
0644
MimeWriter.pyo
7.191 KB
10 Apr 2024 4.58 AM
root / root
0644
Queue.py
8.376 KB
10 Apr 2024 4.58 AM
root / root
0644
Queue.pyc
9.203 KB
10 Apr 2024 4.58 AM
root / root
0644
Queue.pyo
9.203 KB
10 Apr 2024 4.58 AM
root / root
0644
SimpleHTTPServer.py
7.81 KB
10 Apr 2024 4.58 AM
root / root
0644
SimpleHTTPServer.pyc
7.822 KB
10 Apr 2024 4.58 AM
root / root
0644
SimpleHTTPServer.pyo
7.822 KB
10 Apr 2024 4.58 AM
root / root
0644
SimpleXMLRPCServer.py
25.207 KB
10 Apr 2024 4.58 AM
root / root
0644
SimpleXMLRPCServer.pyc
22.327 KB
10 Apr 2024 4.58 AM
root / root
0644
SimpleXMLRPCServer.pyo
22.327 KB
10 Apr 2024 4.58 AM
root / root
0644
SocketServer.py
23.387 KB
10 Apr 2024 4.58 AM
root / root
0644
SocketServer.pyc
23.522 KB
10 Apr 2024 4.58 AM
root / root
0644
SocketServer.pyo
23.522 KB
10 Apr 2024 4.58 AM
root / root
0644
StringIO.py
10.412 KB
10 Apr 2024 4.58 AM
root / root
0644
StringIO.pyc
11.211 KB
10 Apr 2024 4.58 AM
root / root
0644
StringIO.pyo
11.211 KB
10 Apr 2024 4.58 AM
root / root
0644
UserDict.py
6.895 KB
10 Apr 2024 4.58 AM
root / root
0644
UserDict.pyc
9.483 KB
10 Apr 2024 4.58 AM
root / root
0644
UserDict.pyo
9.483 KB
10 Apr 2024 4.58 AM
root / root
0644
UserList.py
3.559 KB
10 Apr 2024 4.58 AM
root / root
0644
UserList.pyc
6.423 KB
10 Apr 2024 4.58 AM
root / root
0644
UserList.pyo
6.423 KB
10 Apr 2024 4.58 AM
root / root
0644
UserString.py
9.46 KB
10 Apr 2024 4.58 AM
root / root
0755
UserString.pyc
14.516 KB
10 Apr 2024 4.58 AM
root / root
0644
UserString.pyo
14.516 KB
10 Apr 2024 4.58 AM
root / root
0644
_LWPCookieJar.py
6.399 KB
10 Apr 2024 4.58 AM
root / root
0644
_LWPCookieJar.pyc
5.307 KB
10 Apr 2024 4.58 AM
root / root
0644
_LWPCookieJar.pyo
5.307 KB
10 Apr 2024 4.58 AM
root / root
0644
_MozillaCookieJar.py
5.661 KB
10 Apr 2024 4.58 AM
root / root
0644
_MozillaCookieJar.pyc
4.356 KB
10 Apr 2024 4.58 AM
root / root
0644
_MozillaCookieJar.pyo
4.318 KB
10 Apr 2024 4.58 AM
root / root
0644
__future__.py
4.277 KB
10 Apr 2024 4.58 AM
root / root
0644
__future__.pyc
4.124 KB
10 Apr 2024 4.58 AM
root / root
0644
__future__.pyo
4.124 KB
10 Apr 2024 4.58 AM
root / root
0644
__phello__.foo.py
0.063 KB
10 Apr 2024 4.58 AM
root / root
0644
__phello__.foo.pyc
0.122 KB
10 Apr 2024 4.58 AM
root / root
0644
__phello__.foo.pyo
0.122 KB
10 Apr 2024 4.58 AM
root / root
0644
_abcoll.py
18.183 KB
10 Apr 2024 4.58 AM
root / root
0644
_abcoll.pyc
25.08 KB
10 Apr 2024 4.58 AM
root / root
0644
_abcoll.pyo
25.08 KB
10 Apr 2024 4.58 AM
root / root
0644
_osx_support.py
18.652 KB
10 Apr 2024 4.58 AM
root / root
0644
_osx_support.pyc
11.482 KB
10 Apr 2024 4.58 AM
root / root
0644
_osx_support.pyo
11.482 KB
10 Apr 2024 4.58 AM
root / root
0644
_pyio.py
67.998 KB
10 Apr 2024 4.58 AM
root / root
0644
_pyio.pyc
63.185 KB
10 Apr 2024 4.58 AM
root / root
0644
_pyio.pyo
63.185 KB
10 Apr 2024 4.58 AM
root / root
0644
_strptime.py
20.242 KB
10 Apr 2024 4.58 AM
root / root
0644
_strptime.pyc
14.816 KB
10 Apr 2024 4.58 AM
root / root
0644
_strptime.pyo
14.816 KB
10 Apr 2024 4.58 AM
root / root
0644
_sysconfigdata.py
19.27 KB
10 Apr 2024 4.58 AM
root / root
0644
_sysconfigdata.pyc
22.43 KB
10 Apr 2024 4.58 AM
root / root
0644
_sysconfigdata.pyo
22.43 KB
10 Apr 2024 4.58 AM
root / root
0644
_threading_local.py
7.09 KB
10 Apr 2024 4.58 AM
root / root
0644
_threading_local.pyc
6.224 KB
10 Apr 2024 4.58 AM
root / root
0644
_threading_local.pyo
6.224 KB
10 Apr 2024 4.58 AM
root / root
0644
_weakrefset.py
5.772 KB
10 Apr 2024 4.58 AM
root / root
0644
_weakrefset.pyc
9.451 KB
10 Apr 2024 4.58 AM
root / root
0644
_weakrefset.pyo
9.451 KB
10 Apr 2024 4.58 AM
root / root
0644
abc.py
6.978 KB
10 Apr 2024 4.58 AM
root / root
0644
abc.pyc
5.999 KB
10 Apr 2024 4.58 AM
root / root
0644
abc.pyo
5.944 KB
10 Apr 2024 4.58 AM
root / root
0644
aifc.py
33.769 KB
10 Apr 2024 4.58 AM
root / root
0644
aifc.pyc
29.745 KB
10 Apr 2024 4.58 AM
root / root
0644
aifc.pyo
29.745 KB
10 Apr 2024 4.58 AM
root / root
0644
antigravity.py
0.059 KB
10 Apr 2024 4.58 AM
root / root
0644
antigravity.pyc
0.198 KB
10 Apr 2024 4.58 AM
root / root
0644
antigravity.pyo
0.198 KB
10 Apr 2024 4.58 AM
root / root
0644
anydbm.py
2.601 KB
10 Apr 2024 4.58 AM
root / root
0644