]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- its probably worthwhile to make the primary listen() interface humane, i.e.:
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Aug 2010 00:17:37 +0000 (20:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Aug 2010 00:17:37 +0000 (20:17 -0400)
commit63c1800c568824b6828ac791f83fd2bf7626adcc
treefe1e8dd2643b3eea3ab0700fdcd28a1abeee82fd
parentdc31eb352aed6b578b7cf0bbc0d4290b6d11f2b2
- its probably worthwhile to make the primary listen() interface humane, i.e.:
 def listen(target, args)

so here we provide a "wrapper" approach that allows this, and it is
basically pass-by-value.  a pass-by-value event *may* support rewriting
some of the args in the dictionary.

 the current
listen will become "listen_raw" since it saves about 100% overhead versus
the coercion to dict, and will be used internally, and will remain
pass-by-reference.

proxyconnection probably will rely upon the newer style of pass-by-value
for "rewrite the args" types of calls.
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/strategies.py
lib/sqlalchemy/event.py
lib/sqlalchemy/interfaces.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/pool.py
lib/sqlalchemy/test/engines.py
test/engine/test_execute.py