Bernhard Herzog <bh@intevation.de> writes: > Michael Hudson <mwh@python.net> writes: > > > > [Michael Hudson] > > > > Writing a pymemcompat.h that people can bundle with their extensions > > > > and then use the 2.3 memory interface with all Pythons in the range > > > > 1.5.2 to 2.3. > [...] > > Surprise of the day: this: > > > > #if PY_VERSION_HEX < 0x01060000 > [...] > > #define PyObject_Del(ob) \ > > PyMem_Del((ob)) > > > > #endif > > Have you actually tried it? Well, obviously not: > There is no PyMem_Del in Python 1.5.2. You're right of course. Thanks for the heads up. I've changed it to PyMem_Free now. See any other problems? Cheers, M. -- Reading Slashdot can [...] often be worse than useless, especially to young and budding programmers: it can give you exactly the wrong idea about the technical issues it raises. -- http://www.cs.washington.edu/homes/klee/misc/slashdot.html#reasons
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4