]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Use vendored getargspec()
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 29 May 2019 21:32:57 +0000 (17:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 29 May 2019 22:50:25 +0000 (18:50 -0400)
commit41b100e6300e0680e9457149ac6f36ad7f78909e
treeb729a9dad106eda6f2e1e37f6e66d96f4f107979
parent31520ac8fffee84514a5ca2b6625486dbce939d4
Use vendored getargspec()

Replaced the Python compatbility routines for ``getargspec()`` with a fully
vendored version based on ``getfullargspec()`` from Python 3.3.
Originally, Python was emitting deprecation warnings for this function in
Python 3.8 alphas.  While this change was reverted, it was observed that
Python 3 implementations for ``getfullargspec()`` are an order of magnitude
slower as of the 3.4 series where it was rewritten against ``Signature``.
While Python plans to improve upon this situation, SQLAlchemy projects for
now are using a simple replacement to avoid any future issues.

Change-Id: If5f3e2f6cc0df8d89e6c3035e024df3319964bf9
Fixes: #563
alembic/util/compat.py
docs/build/unreleased/563.rst [new file with mode: 0644]