diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-08-27 20:17:37 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-08-27 20:17:37 -0400 |
| commit | 63c1800c568824b6828ac791f83fd2bf7626adcc (patch) | |
| tree | fe1e8dd2643b3eea3ab0700fdcd28a1abeee82fd /lib/sqlalchemy/pool.py | |
| parent | dc31eb352aed6b578b7cf0bbc0d4290b6d11f2b2 (diff) | |
| download | sqlalchemy-63c1800c568824b6828ac791f83fd2bf7626adcc.tar.gz | |
- 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.
Diffstat (limited to 'lib/sqlalchemy/pool.py')
| -rw-r--r-- | lib/sqlalchemy/pool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index 6c7e01c6d..5d14c1789 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -211,7 +211,7 @@ class Pool(log.Identified): dispatch = event.dispatcher(PoolEvents) - @util.deprecated("Pool.add_listener is deprecated. Use event.listen()") + @util.deprecated(2.7, "Pool.add_listener is deprecated. Use event.listen()") def add_listener(self, listener): """Add a :class:`.PoolListener`-like object to this pool. |
