Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβthe ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβembodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.
Current path: lib64/python2.7/
β Cloned to:
β¬οΈ Go up: /lib64
οΏ½
zfc @ sοΏ½ d Z d e f d οΏ½ οΏ½ YZ d d d d g Z e g Z d Z xT e D]L Z y e e οΏ½ Z Wn e
k
rp qD n Xe sοΏ½ e Z n e j e j οΏ½ qD We sοΏ½ e
d e οΏ½ n e e οΏ½ Z d d d
οΏ½ Z
d S( sοΏ½ Generic interface to all dbm clones.
Instead of
import dbm
d = dbm.open(file, 'w', 0666)
use
import anydbm
d = anydbm.open(file, 'w')
The returned object is a dbhash, gdbm, dbm or dumbdbm object,
dependent on the type of database being opened (determined by whichdb
module) in the case of an existing dbm. If the dbm does not exist and
the create or new flag ('c' or 'n') was specified, the dbm type will
be determined by the availability of the modules (tested in the above
order).
It has the following interface (key and data are strings):
d[key] = data # store data at key (may override data at
# existing key)
data = d[key] # retrieve data at key (raise KeyError if no
# such key)
del d[key] # delete data stored at key (raises KeyError
# if no such key)
flag = key in d # true if the key exists
list = d.keys() # return a list of all existing keys (slow!)
Future versions may change the order in which implementations are
tested for existence, and add interfaces to other dbm-like
implementations.
t errorc B s e Z RS( ( t __name__t
__module__( ( ( s /usr/lib64/python2.7/anydbm.pyR $ s t dbhasht gdbmt dbmt dumbdbms no dbm clone found; tried %st riοΏ½ c C sοΏ½ d d l m } | | οΏ½ } | d k rU d | k s@ d | k rI t } qy t d οΏ½ n$ | d k rm t d οΏ½ n t | οΏ½ } | j | | | οΏ½ S( sοΏ½ Open or create database at path given by *file*.
Optional argument *flag* can be 'r' (default) for read-only access, 'w'
for read-write access of an existing database, 'c' for read-write access
to a new or existing database, and 'n' for read-write access to a new
database.
Note: 'r' and 'w' fail if the database doesn't exist; 'c' creates it
only if it doesn't exist; and 'n' always creates a new database.
iοΏ½οΏ½οΏ½οΏ½( t whichdbt ct ns# need 'c' or 'n' flag to open new dbt s db type could not be determinedN( R t Nonet _defaultmodR t
__import__t open( t filet flagt modeR t resultt mod( ( s /usr/lib64/python2.7/anydbm.pyR 9 s
N( t __doc__t ExceptionR t _namest _errorsR R
t _nameR t _modt ImportErrort appendt tupleR ( ( ( s /usr/lib64/python2.7/anydbm.pyt <module>"