| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/bsddb/ |
Upload File : |
ó
—|_c @ sø d Z d d l Z e j d d k Z e r6 d d Un d d l Z e j d d k rd d d l Z nz e j d k r‚ d d l Z n\ d d l Z e j ƒ Z e j ƒ z) e j
d d d
d e ƒd d l Z Wd e j ƒ X[ e j d k re j
Z
e j d k rd
„ Z q,d „ Z n d Z
d „ Z e j d k ry d d l m Z Wn$ e k
rud d d „ ƒ YZ n Xe Z n d d l Z e j Z e j d e j d d d „ Z d e j f d „ ƒ YZ d e f d „ ƒ YZ d d d „ ƒ YZ d S(! sN Manage shelves of pickled objects using bsddb database files for the
storage.
iÿÿÿÿNi i s from . import dbi i t ignoret messages1 the cPickle module has been removed in Python 3.0t categoryi c C s t j | | ƒ S( N( t cPicklet dumps( t objectt protocol( ( s$ /usr/lib/python2.7/bsddb/dbshelve.pyt _dumpsK s c C s t j | d | ƒS( NR ( R R ( R R ( ( s$ /usr/lib/python2.7/bsddb/dbshelve.pyR N s c C s t j | d | ƒS( Nt bin( R R ( R R ( ( s$ /usr/lib/python2.7/bsddb/dbshelve.pyR S s ( t DictMixinR c B s e Z RS( ( t __name__t
__module__( ( ( s$ /usr/lib/python2.7/bsddb/dbshelve.pyR \ s i° c C sÒ t | ƒ t d ƒ k r© | } | d k r6 t j } q© | d k rK d } q© | d k rc t j } q© | d k r{ t j } q© | d k rš t j t j B} q© t j d ‚ n t | ƒ } | j | | | | | ƒ | 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()
t t rt rwi t wt ct nsJ flags should be one of 'r', 'w', 'c' or 'n' or use the bsddb.db.DB_* flags( t typet dbt DB_RDONLYt DB_CREATEt DB_TRUNCATEt DBErrort DBShelft open( t filenamet flagst modet filetypet dbenvt dbnamet sflagt d( ( s$ /usr/lib/python2.7/bsddb/dbshelve.pyR e s t
DBShelveErrorc B s e Z RS( ( R
R ( ( ( s$ /usr/lib/python2.7/bsddb/dbshelve.pyR"