Changeset 2340


Ignore:
Timestamp:
10/18/11 11:02:07 (13 years ago)
Author:
Malte Marquarding
Message:

Ticket #256: make add return copy not reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/selector.py

    r1930 r2340  
    246246        else:
    247247            return out
     248
    248249    def __add__(self, other):
    249250        """
     
    251252        """
    252253        if self.is_empty():
    253             return other
     254            return selector(other)
    254255        elif other.is_empty():
    255             return self
     256            return selector(self)
    256257        union = selector()
    257258        gets = [[self._getscans(), other._getscans(), union._setscans],
Note: See TracChangeset for help on using the changeset viewer.