Debian Patches

Status for pylibmc/1.6.3-2

Patch Description Author Forwarded Bugs Origin Last update
0001-Fix-spelling-of-occurred-in-src-_pylibmcmodule.c.patch Fix spelling of "occurred" in src/_pylibmcmodule.c. Michael Fladischer <FladischerMichael@fladi.at> no 2016-05-27
stop-accessing-None-as-dictionary.patch Stop accessing None as a dictionary
PyMapping_HasKeyString does not work on None
Accidentally, it used to return false result on silent errors.

Since Python 3.13, this is what happens instead:

>>> import pylibmc
>>> m = pylibmc.Client(["10.0.0.1"], binary=True)
Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString():
Traceback (most recent call last):
File "/usr/lib64/python3.13/site-packages/pylibmc/client.py", line 142, in __init__
super().__init__(servers=translate_server_specs(servers),
TypeError: 'NoneType' object is not subscriptable
...
Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString():
Traceback (most recent call last):
File "/usr/lib64/python3.13/site-packages/pylibmc/client.py", line 142, in __init__
super().__init__(servers=translate_server_specs(servers),
TypeError: 'NoneType' object is not subscriptable

When this is run via pytest, it leads to:

pytest.PytestUnraisableExceptionWarning: Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString(): None

Fixes https://github.com/pallets-eco/cachelib/issues/400
=?utf-8?q?Miro_Hron=C4=8Dok?= <miro@hroncok.cz> yes debian upstream other, https://github.com/lericson/pylibmc/pull/292 2024-12-29

All known versions for source package 'pylibmc'

Links