pymysql breaking changes
pymysql 1.2.4 (November 9, 2026) is its newest release with breaking changes, 3 of them. The first: Removed pymysql.constants.ER.ERROR_LAST. Every breaking API change we have recorded in pymysql on PyPI: 48 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.2.4, released November 9, 2026. Source repository
Its 0.10.0 release drops Python 3.4. Python end of life dates.
- From 0.10.0 to 1.2.4: 16 breaking changes in 5 versions.
- From 0.9.0 to 1.2.4: 31 breaking changes in 6 versions.
pymysql 1.2.4 breaking changes
- Removed
pymysql.constants.ER.ERROR_LAST
pymysql.constants.ER.ERROR_LAST was removed in PyMySQL 1.2.4 pypi.org - Behavior changed
Time values with fractional seconds must include a decimal point to be parsed. Check any code that passes time strings without one. github.com - Behavior changed
ssl_verify_identity
When ssl_verify_identity is set, the server certificate is now checked. Connections that previously passed without this check may now fail. github.com
pymysql 1.2.1 breaking changes
- Removed
pymysql.connections.Connection.escape_string
Connection.escape_string was removed in PyMySQL 1.2.1 pypi.org - Removed
pymysql.connections.LoadLocalFile
pymysql.connections.LoadLocalFile was removed in PyMySQL 1.2.1 pypi.org - Removed
pymysql.converters.escape_bytes_prefixed
pymysql.converters.escape_bytes_prefixed was removed in PyMySQL 1.2.1 pypi.org - Removed
pymysql.converters.escape_dict
pymysql.converters.escape_dict was removed in PyMySQL 1.2.1 pypi.org - Signature changed
pymysql.converters.escape_item
Was def escape_item(val, charset, mapping=None); now def escape_item(val, charset=None, mapping=None). pypi.org - Signature changed
pymysql.converters.escape_sequence
Was def escape_sequence(val, charset, mapping=None); now def escape_sequence(val, charset=None, mapping=None). pypi.org - Signature changed
pymysql.converters.escape_set
Was def escape_set(val, charset, mapping=None); now def escape_set(val, charset=None, mapping=None). pypi.org
pymysql 1.2.0 breaking changes
- Removed
pymysql.connections.Cursor.__getattr__
Cursor.__getattr__ was removed in PyMySQL 1.2.0 pypi.org - Behavior changed
Decimal query parameters that are NaN, sNaN or infinite are now rejected instead of being passed through, so such code must change its inputs. github.com - Behavior changed
The release reorganizes TLS options and implements PREFERRED and REQUIRED SSL mode behavior, so existing TLS setups may connect differently. github.com - Signature changed
pymysql.connections.Connection.ping
The reconnect parameter of Connection.ping() is deprecated and will warn when used. pypi.org
pymysql 1.1.3 breaking changes
- Behavior changed
Cursor.callproc
The procedure name passed to callproc is now escaped. Code that relied on unescaped names, such as names with dots or special characters, may need to be checked. github.com
pymysql 1.1.2 breaking changes
- Behavior changed
The release turns off the OpenSSL VERIFY_X509_STRICT verification flag so connections work on Python 3.13. Code that depended on strict X.509 certificate checks may now accept certificates it previously rejected. github.com
pymysql 0.10.0 breaking changes
- Removed
Python 3.4 is no longer supported by this release. github.com - Removed
Connection
Connection no longer works as a context manager. Stop using it in a with statement; the interface will return later with a different meaning. github.com - Removed
pymysql.charset.charset_to_encoding
pymysql.charset.charset_to_encoding was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.connections.Connection.__enter__
Connection.__enter__ was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.connections.Connection.__exit__
Connection.__exit__ was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.converters.charset_by_id
pymysql.converters.charset_by_id was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.converters.charset_to_encoding
pymysql.converters.charset_to_encoding was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.converters.convert_mysql_timestamp
pymysql.converters.convert_mysql_timestamp was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.converters.convert_set
pymysql.converters.convert_set was removed in PyMySQL 0.10.0 pypi.org - Removed
pymysql.converters.FLAG
pymysql.converters.FLAG was removed in PyMySQL 0.10.0 pypi.org
And 5 more in this version. Sign up to see every change
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
pymysql 0.9.0 breaking changes
- Removed
no_delay
The no_delay option is gone. Remove it from any connection calls. github.com - Removed
pymysql.connections.MBLENGTH
pymysql.connections.MBLENGTH was removed in PyMySQL 0.9.0 pypi.org
And 15 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.