Changeset 250:72316adf1c61 in livinglogic.python.orasql

Show
Ignore:
Timestamp:
03/25/08 18:21:31 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Tags:
rel-1-23-1
Message:

Add Record.contains().

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r249 r250  
     1Changes in 1.23.1 (released 03/25/2008) 
     2------------------------------------- 
     3 
     4*   Added a :meth:`__contains__` to :class:`Record` for checking the existence 
     5    of a field. 
     6 
     7 
    18Changes in 1.23 (released 03/25/2008) 
    29------------------------------------- 
  • setup.py

    r246 r250  
    5656args=dict( 
    5757    name="ll-orasql", 
    58     version="1.23", 
     58    version="1.23.1", 
    5959    description="Utilities for working with cx_Oracle", 
    6060    long_description=descr, 
  • src/ll/orasql/__init__.py

    r248 r250  
    207207            raise AttributeError("'%s' object has no attribute %r" % (self.__class__.__name__, name)) 
    208208        return tuple.__getitem__(self, index) 
     209 
     210    def __contains__(self, name): 
     211        return name.lower() in self._name2index 
    209212 
    210213    def iterkeys(self):