Mercurial > hg-stable
changeset 30092:67b0484c9ce4
util: document we want Python type mapping to be temporary
I think remapping Python C API types and functions is not a great
approach. I'd prefer this whole #ifdef disappeared. Add a comment
so we don't forget about it.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Oct 2016 19:16:50 +0200 |
parents | d576b7394646 |
children | 68010ed1636d |
files | mercurial/util.h |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.h Sat Oct 08 19:02:44 2016 +0200 +++ b/mercurial/util.h Sat Oct 08 19:16:50 2016 +0200 @@ -13,6 +13,9 @@ #if PY_MAJOR_VERSION >= 3 #define IS_PY3K +/* The mapping of Python types is meant to be temporary to get Python + * 3 to compile. We should remove this once Python 3 support is fully + * supported and proper types are used in the extensions themselves. */ #define PyInt_Type PyLong_Type #define PyInt_FromLong PyLong_FromLong #define PyInt_AsLong PyLong_AsLong