- same as [ticket:1019] but repaired the non-labeled use case
[ticket:1022]
- - Adjusted class-member inspection durint attribute and
+ - Adjusted class-member inspection during attribute and
collection instrumentation that could be problematic when
integrating with other frameworks.
+ - Fixed duplicate append event emission on repeated
+ instrumented set.add() operations.
+
- declarative extension
- Joined table inheritance mappers use a slightly relaxed
function to create the "inherit condition" to the parent
def add(fn):
def add(self, value, _sa_initiator=None):
- __set(self, value, _sa_initiator)
+ if value not in self:
+ __set(self, value, _sa_initiator)
# testlib.pragma exempt:__hash__
fn(self, value)
_tidy(add)
def update(fn):
def update(self, value):
for item in value:
- if item not in self:
- self.add(item)
+ self.add(item)
_tidy(update)
return update
if sautil.duck_type_collection(value) is not Set:
return NotImplemented
for item in value:
- if item not in self:
- self.add(item)
+ self.add(item)
return self
_tidy(__ior__)
return __ior__