MySQLdb1 icon indicating copy to clipboard operation
MySQLdb1 copied to clipboard

Some Python 3 C-API fixes.

Open methane opened this issue 10 years ago • 3 comments

tp_getattr and tp_setattr are deprecated. Use tp_getattro and tp_setattro instead.

Fix wrong deallocation macro.

Remove some macros for very old Python (<2.2)

methane avatar Apr 16 '14 13:04 methane

@methane: This seemed to stop the segfault on Python 3.3 but it segfaults on Python 2.6 and 2.7 -- both locally and on Travis CI: https://travis-ci.org/farcepest/MySQLdb1/builds/23126432

msabramo avatar Apr 16 '14 15:04 msabramo

@msabramo Fixed.

methane avatar Apr 16 '14 17:04 methane

@methane: Confirming that you fixed segfaults on 2.6 and 2.7. Great work!

msabramo avatar Apr 16 '14 22:04 msabramo