Package SCons :: Module dblite :: Class dblite
[hide private]
[frames] | no frames]

Class dblite

source code

object --+
         |
        dblite

Squirrel away references to the functions in various modules that we'll use when our __del__() method calls our sync() method during shutdown. We might get destroyed when Python is in the midst of tearing down the different modules we import in an essentially arbitrary order, and some of the various modules's global attributes may already be wiped out from under us.

See the discussion at:
http://mail.python.org/pipermail/python-bugs-list/2003-March/016877.html
Instance Methods [hide private]
file object
_open(name, mode=..., buffering=...)
Open a file using the file() type, returns a file object. This is the preferred way to open a file. See file.__doc__ for further information.
 
_os_chmod(path, mode)
Change the access permissions of a file.
 
_os_chown(path, uid, gid)
Change the owner and group id of path to the numeric uid and gid.
 
_os_rename(old, new)
Rename a file or directory.
 
_os_unlink(path)
Remove a file (same as remove(path)).
 
_shutil_copyfile(src, dst)
Copy data from src to dst
floating point number
_time_time()
Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them.
 
__init__(self, file_base_name, flag, mode)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
close(self) source code
 
__del__(self) source code
 
sync(self) source code
 
_check_writable(self) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
keys(self) source code
 
has_key(self, key) source code
 
__contains__(self, key) source code
 
iterkeys(self) source code
 
__iter__(self) source code
 
__len__(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
_pickle_dump(obj, file, protocol=0)
Write an object in pickle format to the given file.
source code
Class Variables [hide private]
  _pickle_protocol = 2
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_pickle_dump(obj, file, protocol=0)
Static Method

source code 

Write an object in pickle format to the given file.

See the Pickler docstring for the meaning of optional argument proto.

__init__(self, file_base_name, flag, mode)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)