config root man

Current Path : /usr/local/lib/python2.5/bsddb/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/bsddb/dbshelve.pyo

³ò
h”Rc@s¿dZddkZyddklZWn&ej
oddd„ƒYZnXddkZeideiddd„Z	dei
fd	„ƒYZd
efd„ƒYZddd
„ƒYZ
dS(sNManage shelves of pickled objects using bsddb database files for the
storage.
iÿÿÿÿN(t	DictMixinRcBseZRS((t__name__t
__module__(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR%si°cCsÞt|ƒtdƒjoœ|}|djo
ti}qµ|djo
d}qµ|djo
ti}qµ|djo
ti}qµ|djotitiB}qµtid‚nt|ƒ}|i|||||ƒ|S(	s(
    A simple factory function for compatibility with the standard
    shleve.py module.  It can be used like this, where key is a string
    and data is a pickleable object:

        from bsddb import dbshelve
        db = dbshelve.open(filename)

        db[key] = data

        db.close()
    ttrtrwitwtctnsJflags should be one of 'r', 'w', 'c' or 'n' or use the bsddb.db.DB_* flags(ttypetdbt	DB_RDONLYt	DB_CREATEtDB_TRUNCATEtDBErrortDBShelftopen(tfilenametflagstmodetfiletypetdbenvtdbnametsflagtd((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR+s 








t
DBShelveErrorcBseZRS((RR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRNsRcBsÚeZdZdd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
dd„Zdd	„Zdd
„Z
dd„Zdd„Zd
d„Zd„Zdd
d„Zdd
d„Zdd
d„Zd
d„ZRS(sŽA shelf to hold pickled objects, built upon a bsddb DB object.  It
    automatically pickles/unpickles data objects going to/from the DB.
    cCsti|ƒ|_d|_dS(Ni(R
tDBtbinary(tselfR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__init__UscCs|iƒdS(N(tclose(R((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__del__ZscCst|i|ƒS(sTMany methods we can just pass through to the DB object.
        (See below)
        (tgetattrR
(Rtname((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__getattr__^scCs
t|iƒS(N(tlenR
(R((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__len__hscCs|i|}ti|ƒS(N(R
tcPickletloads(Rtkeytdata((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__getitem__ls
cCs&ti||iƒ}||i|<dS(N(R%tdumpsRR
(RR'tvalueR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__setitem__qscCs|i|=dS(N(R
(RR'((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__delitem__vscCs2|djo|ii|ƒSn|iiƒSdS(N(tNoneR
tkeys(Rttxn((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR/zs
cCso|djo|ii|ƒ}n|iiƒ}g}x0|D](\}}|i|ti|ƒfƒq?W|S(N(R.R
titemstappendR%R&(RR0R1tnewitemstktv((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR1s
 cCsB|djo|ii|ƒ}n|iiƒ}tti|ƒS(N(R.R
tvaluestmapR%R&(RR0R6((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR6Œs
cCs(ti||iƒ}|ii||ƒS(N(R%R*RR
R2(RR+R0R(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt__append—scCs:|iƒtijo|i|d|ƒSntd‚dS(NR0sOappend() only supported when dbshelve opened with filetype=dbshelve.db.DB_RECNO(tget_typeR
tDB_RECNOt_DBShelf__appendR(RR+R0((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR2›sicCs"|d„}|ii|||ƒS(NcSsti|ƒ}|||ƒS(N(R%R&(tpriKeytpriDatatrealCallbackR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt_shelf_callback¢s(R
t	associate(RtsecondaryDBtcallbackRR?((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR@¡scOsPt|ii||ƒ}yti|ƒSWn ttifj
o|SnXdS(N(tapplyR
tgetR%R&t	TypeErrortUnpicklingError(RtargstkwR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRD©s
cCs=ti||iƒ}|ii||||ƒ}ti|ƒS(N(R%R*RR
RDR&(RR'R+R0RR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytget_bothµscCs+t|ii||ƒƒ}|i|_|S(N(t
DBShelfCursorR
tcursorR(RR0RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRK»scCs.ti||iƒ}|ii||||ƒS(N(R%R*RR
tput(RR'R+R0RR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRLÁscCs
t‚dS(N(tNotImplementedError(Rt
cursorListR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytjoinÆsN(RRt__doc__R.RRR"R$R)R,R-R/R1R6R;R2R@RDRIRKRLRO(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRQs&		
					RJcBseZdZd„Zd„Zd„Zdd„Zdd„Zd„Zd„Z	d	„Z
d
„Zdd„Zdd„Z
dd
„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„ZeZd„ZRS(s
    cCs
||_dS(N(tdbc(RRK((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR×scCs|iƒdS(N(R(R((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRÚscCst|i|ƒS(sHSome methods we can just pass through to the cursor object.  (See below)(R RQ(RR!((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyR"ÞsicCst|ii|ƒƒS(N(RJRQtdup(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRRåscCs+ti||iƒ}|ii|||ƒS(N(R%R*RRQRL(RR'R+RR(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRLéscGs0t|ƒ}t|d|ƒ}t||ƒdS(Nsget_%d(R#R RC(RRGtcounttmethod((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRDîscCs|ii|ƒ}|i|ƒS(N(RQRDt_extract(RRtrec((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytget_1óscCs"|ii||ƒ}|i|ƒS(N(RQRDRU(RR'RRV((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytget_2÷scCs7ti||iƒ}|ii||ƒ}|i|ƒS(N(R%R*RRQRDRU(RR'R+RR(RV((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytget_3ûscCs|i|tiBƒS(N(RWR
t
DB_CURRENT(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytcurrentscCs|i|tiBƒS(N(RWR
tDB_FIRST(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytfirstscCs|i|tiBƒS(N(RWR
tDB_LAST(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytlastscCs|i|tiBƒS(N(RWR
tDB_NEXT(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytnextscCs|i|tiBƒS(N(RWR
tDB_PREV(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytprevscCs|i|tiBƒS(N(RWR
t
DB_CONSUME(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytconsumescCs|i|tiBƒS(N(RWR
tDB_NEXT_DUP(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pytnext_dupscCs|i|tiBƒS(N(RWR
t
DB_NEXT_NODUP(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt
next_nodupscCs|i|tiBƒS(N(RWR
t
DB_PREV_NODUP(RR((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyt
prev_nodup	scCs7ti||iƒ}|ii||ƒ}|i|ƒS(N(R%R*RRQRIRU(RR'R+RR(RV((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRIscCs"|ii||ƒ}|i|ƒS(N(RQtsetRU(RR'RRV((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRlscCs"|ii||ƒ}|i|ƒS(N(RQt	set_rangeRU(RR'RRV((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRmscCs"|ii||ƒ}|i|ƒS(N(RQt	set_recnoRU(RtrecnoRRV((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRnscCs8|djodSn |\}}|ti|ƒfSdS(N(R.R%R&(RRVR'R(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRU s
(RRRPRRR"RRRLRDRWRXRYR[R]R_RaRcReRgRiRkRIRlRmRntset_bothRU(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pyRJÔs2							(((RPR%tUserDictRtImportErrorR
RtDB_HASHR.RRRRRJ(((s*/usr/local/lib/python2.5/bsddb/dbshelve.pys<module>s"ƒ

Man Man