]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed regression where using a ``functools.partial()`` with the event
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Jan 2014 05:35:48 +0000 (00:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Jan 2014 05:35:48 +0000 (00:35 -0500)
commitc450cd6cb6d0c8fed110abcec5bc17ec4e0e8c5e
tree5123348a03368a518a08614bd195927cd7abf03a
parent31821011271bf2333b69954d53c3c922e39bf225
- Fixed regression where using a ``functools.partial()`` with the event
system would cause a recursion overflow due to usage of inspect.getargspec()
on it in order to detect a legacy calling signature for certain events,
and apparently there's no way to do this with a partial object.  Instead
we skip the legacy check and assume the modern style; the check itself
now only occurs for the SessionEvents.after_bulk_update and
SessionEvents.after_bulk_delete events.  Those two events will require
the new signature style if assigned to a "partial" event listener.
[ticket:2905]
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/event/attr.py
lib/sqlalchemy/util/langhelpers.py
test/base/test_events.py
test/base/test_utils.py