Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
test.test_shelve.byteskeydict Class Reference
Inheritance diagram for test.test_shelve.byteskeydict:
Inheritance graph
[legend]
Collaboration diagram for test.test_shelve.byteskeydict:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __getitem__
def __setitem__
def __delitem__
def __len__
def iterkeys
def keys
def copy

Public Attributes

 d

Static Private Attributes

 __iter__ = iterkeys

Detailed Description

Definition at line 11 of file test_shelve.py.


Constructor & Destructor Documentation

Definition at line 14 of file test_shelve.py.

00014 
00015     def __init__(self):
00016         self.d = {}

Here is the caller graph for this function:


Member Function Documentation

def test.test_shelve.byteskeydict.__delitem__ (   self,
  key 
)

Definition at line 23 of file test_shelve.py.

00023 
00024     def __delitem__(self, key):
00025         del self.d[L1(key)]

Here is the call graph for this function:

def test.test_shelve.byteskeydict.__getitem__ (   self,
  key 
)

Definition at line 17 of file test_shelve.py.

00017 
00018     def __getitem__(self, key):
00019         return self.d[L1(key)]

Here is the call graph for this function:

Definition at line 26 of file test_shelve.py.

00026 
00027     def __len__(self):
00028         return len(self.d)

def test.test_shelve.byteskeydict.__setitem__ (   self,
  key,
  value 
)

Definition at line 20 of file test_shelve.py.

00020 
00021     def __setitem__(self, key, value):
00022         self.d[L1(key)] = value

Here is the call graph for this function:

Definition at line 38 of file test_shelve.py.

00038 
00039     def copy(self):
00040         return byteskeydict(self.d)
00041 

Definition at line 29 of file test_shelve.py.

00029 
00030     def iterkeys(self):
00031         for k in self.d.keys():
00032             yield k.encode("latin-1")

Here is the caller graph for this function:

Definition at line 35 of file test_shelve.py.

00035 
00036     def keys(self):
00037         return list(self.iterkeys())

Here is the call graph for this function:


Member Data Documentation

Definition at line 33 of file test_shelve.py.

Definition at line 15 of file test_shelve.py.


The documentation for this class was generated from the following file: