[Sqlalchemy-tickets] [sqlalchemy] #2832: event.remove fails when used for method in 0.9
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-10-01 12:42:57
|
#2832: event.remove fails when used for method in 0.9
--------------------+-----------------------------------------
Reporter: ods | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone:
Component: (none) | Severity: no triage selected yet
Keywords: | Progress State: awaiting triage
--------------------+-----------------------------------------
`_EventKey._key` uses `id()` of listener function. This causes problem
when method is used since in python new method object (with different id,
but equal when compared with `==`) is created each time it's accessed. As
a result `event.remove` fails for it with exception "`InvalidRequestError:
No listeners found for event …`".
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2832>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|